dreamatdrew: "Dreamwidth Irish Pub", overprinted on green around a pint glass with Celtic knotwork on it. (Pub)
Drew M.C. ([personal profile] dreamatdrew) wrote in [site community profile] dw_dev2011-11-14 05:12 am
Entry tags:

What time is it again?

So, I finally managed to get an up-to-date copy of DW's source, and went about installing.
And... checkconfig tells me no. "Timezone must be UTC."
This is from http://bugs.dwscoalition.org/show_bug.cgi?id=3785 , which specifically added the check because "[t]he code expects system time to be GMT or really weird things happen".

I do not function on GMT. Therefore, my computer does not function on GMT. Therefore, no DW install for me.

So, I did a LITTLE investigating. Unless I'm completely mistaken, the "gimmie GMT" time functions are already built in to core perl. So, it should be possible to hack out that little requirement. Yes, it'd be a lot of tediousness. But I'm thinking not actually all that hard.

Am I wrong here? Opinions plz?
geekosaur: orange tabby with head canted 90 degrees, giving impression of "maybe it'll make more sense if I look at it this way?" (Default)

[personal profile] geekosaur 2011-11-15 02:05 am (UTC)(link)
Not a hack at all. I set timezone for my account in my ec2 instance (the system default is UTC).

As for the rest, it occurs to me that it's not just Perl that one might need to worry about. Consider default values for DATETIME columns in mysql, for example. (The database engine runs under its own account.)
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2011-11-18 05:03 pm (UTC)(link)
I suspect the main hurdle will be making sure all servers are consistent. (Database, web, Mogile, and maybe also Perlbal and Pound.)