Wednesday 16 May 2012

Re: [dcphp-dev] DateTime and Time Zones


This is a for a personal project where I'm trying to track some info, projects and data amongst friends & family, with servers in the eu and us. I thought about going the unix route but masochist I am I thought I'd try doing it all in php, but the deeper I dig the more obfuscated this becomes and makes my head hurt.  Reading the docs, digging on stackoverflow just makes it worse.

One of the biggest things is that Mexican & CET timezones do not switch over to Winter & Summer times like here in the US, so there's always a bit of +/- 1 or 2 hours. I'm going to keep digging in this. I blame Benjamin Franklin for this mess.

There's a slew of bugs associated with this too

https://bugs.php.net/bug.php?id=55253
https://bugs.php.net/bug.php?id=61530
https://bugs.php.net/bug.php?id=61955

On Wed, May 16, 2012 at 10:26 PM, Brad Garness <brad.garness@gmail.com> wrote:
Greetings Eric,

What is the development environment like?
Is this timestamp used in a cluster scenario? 
What type of data are you interacting (UTF/ HTML5 ETC..) with using this timestamp (MySQL, JS, ETC... )?

If you are on a *.NIX envrionment, I prefer unix timestamps, as they provide a logical numerical value that is simple to evaluate with common expressions. 

Finest Regards,

Brad Garness

On Wed, May 16, 2012 at 10:15 PM, Eric Maag <eric.maag@gmail.com> wrote:
https://wiki.php.net/rfc/datetime_and_daylight_saving_time

Has anyone been able to implement this successfully?

I'm trying to track times in Mexico (different time zone changes than the US), Eastern Europe & the US. 

http://stackoverflow.com/questions/9695870/phps-datetimediff-gets-it-wrong these guys feel my pain. :/

--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en


--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en

0 comments:

Post a Comment