Skip to main content
March 17, 2011
Question

Daylight Savings Time

  • March 17, 2011
  • 3 replies
  • 531 views

We have a customer website hosted on our local server (server time is set to EST/EDT).  The website's primarily focus is scheduling so we have thousands of pages of code dealing with dates and times.  All our times are stored in GMT.

So, the problem we keep running into is when our local daylight savings time switches over Coldfusion thinks there is no 2am at that time. Of course, locally, there is no 2am on that date but in GMT there is...

We have written workarounds all throughout our code to avoid the problems this causes us but we are constantly adding new features and update the site so we have to continuously write fixes for this problem into our code. I want to fix the problem once and for all and not have to continue to write workarounds into our new/updated code.

Has anyone else figured out how to fix the problem without coding for it?  eg: can we set the server time to GMT?

Adobe - can't this be fixed?  or maybe create a setting in CF somewhere to override it?

Any suggestions are greatly appreciated.

    This topic has been closed for replies.

    3 replies

    Inspiring
    March 18, 2011

    darn forums....lets try that again.

    >> We have a customer website hosted on our local server (server time is set to

    >> EST/EDT). The website's primarily focus is scheduling so we have thousands

    >> of pages of code dealing with dates and times. All our times are stored in

    >> GMT.

    no they're not, unless the server tz is UTC.

    >> Has anyone else figured out how to fix the problem without coding for it?

    >> eg: can we set the server time to GMT?

    have you seen this? http://bit.ly/b4VJsN

    >> Adobe - can't this be fixed? or maybe create a setting in CF somewhere to

    >> override it?

    vote for this enhancement:

    http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=72824

    Inspiring
    March 18, 2011
    ilssac
    Inspiring
    March 17, 2011

    funkygirlAUCA wrote:

    can we set the server time to GMT?

    Of course.  It is your server and you can set it to any time zone you want it to run in.  How big a change that is, only your organization can say.

    funkygirlAUCA wrote:

    Adobe - can't this be fixed?  or maybe create a setting in CF somewhere to override it?

    I'm not sure what you want Adobe (who do not officially monitor these forums AFAIK) to do.  It is up to each developer to decide how one wants to deal with all the varagrees of dates and times.  We humans have made a royal muddled mess of marking the 4th dimension.

    What have you tried to compinsate for this?  Are you using ALL the date and time functions available to their full extent.  Maybe the 'ls' versions of them?

    I'm sure this is well solved by many people, but without some idea of how you are handling the issue or what the actually coding difficulties are and why they exist, it is hard to really provide much help.