[Hpr] HPR Web Submission Form: Ready for [third] review

Ken Fallon ken.fallon at gmail.com
Wed May 22 11:30:00 PDT 2013


On Wed, 22 May 2013 14:21:31 -0400
epicanis+hpr at dogphilosophy.net wrote:

> > Any chance of going UTC - ie dripping the +0200 ?
> 
> That's actually even easier (slightly) than what I'm currently doing,
> but only if I can assume the server the script is on is configured
> for UTC time instead of local time. Easy version is I remove the
> timezone modifier and just throw a "Z" on the end instead.
> 
> (If not, I think it's still possible, but I'll need to add a lookup
> for what the local server's timezone is and calculate the UTC time -
> a bit more complicated but not much)
> 
> So I guess the important question is, can I assume the server will be
> running on UTC time?

Nope it's not. You'll need to look at UTC_DATE() and/or setting
date_default_timezone_set('UTC');

Ken.




More information about the Hpr mailing list