News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

XPertDeveloper.com:
Is Your PHP Application Affected by the Y2K38?
May 16, 2011 @ 09:22:18

On the XpertDeveloper.com site there's a post reminding you of an date could cause all sorts of problems with your PHP application - the effects of the Y2K38 bug.

Y2K38, or the Unix Millennium Bug, affects PHP and many other languages and systems which use a signed 32-bit integer to signify dates as the number of seconds since 00:00:00 UTC on 1 January 1970. The furthest date which can be stored is 03:14:07 UTC on 19 January 2038. Beyond that, the left-most bit is set and the integer becomes a negative decimal number or a time prior to the epoch.

If you're worried about your application's support for date and time handling, there's a pretty simple fix - replace your current handling with the DateTime functionality. This handles them correctly.

0 comments voice your opinion now!
application y2k38 bug datetime integer date


blog comments powered by Disqus

Similar Posts

Greb Beaver\'s Blog: Chiara_PEAR_Server 0.18.4 released

Community News: CakePHP Project Launches "The Show" (Live/Podcast Series)

Jared White's Blog: Willowgarden Highlight: Template Modes

SitePoint PHP Blog: 8 Heroku Add-ons for Production Ready PHP Apps

SitePoint PHP Blog: Is Your PHP Application Affected by the Y2K38 Bug?


Community Events





Don't see your event here?
Let us know!


podcast interview community series release zendserver api deployment voicesoftheelephpant language symfony tips bugfix developer introduction library laravel list framework conference

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework