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?
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2011-11-14 12:22 pm (UTC)(link)
I do not function on GMT. Therefore, my computer does not function on GMT.
I'm missing a link there. The NVRAM clock on my computer is set to GMT, systemwide timezone is GMT, and I set my user account to use $local_timezone{me}. The syslog timestamps use GMT, but that doesn't bother me. If it's a problem for you, or if for any reason you want $local_timezone{you} as the systemwide timezone (and NVRAM clock), you could reverse that design and set the shell account you use for running DW to GMT. Would that fix your problem?
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2011-11-15 02:07 am (UTC)(link)
FYI, that check was put in because if the timezone of the DW user account isn't UTC, bad bad bad things happen. The code expects UTC, so we figured it'd be better to make the expectation clear so nothing went fwoom later.
alierak: (Default)

[personal profile] alierak 2011-11-15 03:37 am (UTC)(link)
It should absolutely be possible. There is plenty of code that assumes localtime is different from gmtime; any that doesn't should be considered a bug, or else we need to go back and simplify all the functions that conditionally use gmtime...