[wp-hackers] Post dates older than 1.1.1970 - PHP issue
dino at duechiacchiere.it
Thu Jul 16 01:34:29 UTC 2009
Does this mean that Wordpress will stop working in 2070? I mean, I won't
be probably alive by that time, but just for curiosity... or even worse,
in 2038 ?
Lynne Pope ha scritto:
> 2009/7/16 John Myrstad <john.ivar.myrstad at gmail.com>
>> When using the Simili timeline in WordPress its not possible to have posts
>> older than 1.1.1970. As I understand this is a PHP issue, but are there any
>> workarounds or hacks that may remove the limit ? As I understand its done
>> with MovableType or TextPattern.
> It's not simply a PHP issue as MySQL, server apps, and operating systems are
> also designed to use the UNIX timestamp. The epoch date is 1st January 1970
> and all times are calculated as seconds elapsed since the epoch.
> One way to get around this in a script is to calculate the required date as
> the number of seconds before the epoch and enter this as a negative value.
> Here's a calculator that can give you the number:
> I've never had any luck with using negative time in WordPress so if you do,
> please share!
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
due chiacchiere <http://feeds.feedburner.com/duechiacchiere>
More information about the wp-hackers