Moved expired date generation to PHP;