[wp-hackers] Date/Time and WP
    Dobri 
    dyordan1 at ramapo.edu
       
    Wed Jul 17 12:45:12 UTC 2013
    
    
  
Hey guys,
From my understanding, when dealing with date and time, WordPress, because of PHP 4 legacy support, sets timezone to UTC and does its own calculations based on the timezone in options. So, when writing plugins, what would be the correct approach to making sure correct timezone is used? Should I use built-in functions like date and somehow specify timezone every time I access them? Or are there any WordPress functions created for that purpose? Any help with this appreciated. Thanks!
~Dobri
    
    
More information about the wp-hackers
mailing list