ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

DST defaults to 'n' in certain cases

March 14, 2011 5:14am

Subscribe [6]
  • #1 / Mar 14, 2011 5:14am

    kevin332

    50 posts

    I’m using EE 2.1.4 right now. I have Solspace Tag, Super Search, and Twitter Timeline installed.

    I ran into a hiccup when I switched over to DST yesterday. The site wouldn’t recognize that DST was active.

    The default_site_dst override is set to ‘n’ when I view my pages with Ouput Profiler turned on, but I didn’t set it. I’m under the impression that it should be blank in most cases.

    Setting “Allow members to set their own localization preferences?” to “Yes” allows DST to be recognized properly, but this also means I can’t ever set that to “No” without hacking Session.php or tracking down where default_site_dst is being set to ‘n’ in the first place.

    If this behavior isn’t repeatable by anyone else, then feel free to consider this resolved; my solution works fine for me. Otherwise it may be a bug.

  • #2 / Mar 14, 2011 3:09pm

    Sue Crocker

    26054 posts

    Hi, Kevin.

    Let me ask the dev team about this.. Thanks in advance for your patience. But before I do so,

    The default_site_dst override is set to ‘n’ when I view my pages with Ouput Profiler turned on, but I didn’t set it. I’m under the impression that it should be blank in most cases.

    Are you attempting to use your own DST settings for those that haven’t set a DST setting?

  • #3 / Mar 14, 2011 3:38pm

    kevin332

    50 posts

    I only have one member which is my own super admin account. Under that member, daylight_savings is set to ‘y’ and localization_is_site_default is set to ‘n’.

  • #4 / Mar 15, 2011 6:55am

    John Henry Donovan

    12339 posts

    No response from the team about this yet. Thanks for your patience. We will update this thread when we hear.

  • #5 / Mar 28, 2011 8:59pm

    michaelroling

    34 posts

    I’m having the same issue with my Freelancer license install.  Just one account, a super admin.  If I’m logged in, the time is perfect.  If logged out, -1 hour off.  It seems as though the daylight savings config isn’t being inserted into the DB?

  • #6 / Mar 29, 2011 4:37pm

    Brandon Jones

    5500 posts

    kevin332 and michaelroling,

    If a config setting is blank, it’s going to default to ‘n’. What is the setting of Daylight Saving Time in Admin > Localization Settings? Guests will pick up that global setting with your particular member’s settings mentioned previously:

    I only have one member which is my own super admin account. Under that member, daylight_savings is set to ‘y’ and localization_is_site_default is set to ‘n’.

  • #7 / Mar 29, 2011 4:52pm

    michaelroling

    34 posts

    Within Admin > Localization Settings the Daylight Saving Time is set to ‘Yes’.  I’ve taken a screenshot of this and also the config variable values pertaining to time zone / DST.

  • #8 / Mar 29, 2011 7:00pm

    kevin332

    50 posts

    kevin332 and michaelroling,

    If a config setting is blank, it’s going to default to ‘n’. What is the setting of Daylight Saving Time in Admin > Localization Settings? Guests will pick up that global setting with your particular member’s settings mentioned previously:

    I only have one member which is my own super admin account. Under that member, daylight_savings is set to ‘y’ and localization_is_site_default is set to ‘n’.

    That’s the behavior I expected and wasn’t getting. The global setting is “Yes”, which is what I want to be recognized globally. As long as I leave “Allow members to set their own localization preferences?” turned on it’s fine. My issue is very specific to the settings I outlined above, so if it’s not repeatable I’ll just blame gremlins.

    There are currently 5 different places in the control panel to mess up DST (member settings, member profile, localization settings, config file, and template-level override), so odds are pretty good that two people can experience similar problems for completely different reasons.

  • #9 / Mar 30, 2011 1:08am

    michaelroling

    34 posts

    Did a little more testing, I can force DST by adding

    $config['default_site_dst'] = "y";

    to config.php.  I shouldn’t have to do this though, right?

  • #10 / Mar 30, 2011 4:50pm

    Sue Crocker

    26054 posts

    Michael, are you on 2.1.4beta or 2.1.3?

  • #11 / Mar 30, 2011 4:53pm

    michaelroling

    34 posts

    I’m on 2.1.3, freelance.

  • #12 / Mar 30, 2011 5:44pm

    Sue Crocker

    26054 posts

    Michael, there are still lots of little gremlins in 2.1.3 and 2.1.4 beta in regards to DST. As we do more testing for later releases, I’m planning on testing the heck out of DST. If your config.php setting is working, keep it there.

    Will that work for now?

  • #13 / Mar 30, 2011 7:38pm

    michaelroling

    34 posts

    Works for me.  Thanks.

  • #14 / Mar 30, 2011 8:02pm

    Sue Crocker

    26054 posts

    Kevin, what about you?

  • #15 / Mar 30, 2011 8:04pm

    kevin332

    50 posts

    Same here. I have DST active right now and that’s all I care about.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases