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.

Date output discrepancy

May 05, 2011 6:39pm

Subscribe [2]
  • #1 / May 05, 2011 6:39pm

    Haarball

    36 posts

    There’s a 1 hour discrepancy between the {current_time} field and my custom date field. I tried changing all the Localization Settings fields one by one, but they all affected both fields (it’s been set to UTC + 1 all along, fwiw. Does this matter?). Didn’t matter whether I set the custom field to ‘fixed’ or ‘localized’, either. Also tried deleting the cache, to no avail.

    Both fields are set up exactly the same way:

    {featured_expiration format="%y%m%d%H%i%s"}
    {current_time format="%y%m%d%H%i%s"}

    This was the output a minute ago after I set the custom date to output the current time:

    110505233010
    110505223015

    Note the difference: 22 should be 23 on the bottom one.

    Don’t know if it’s any help, but this:

    {date format="%F %d %Y %Q %T %Z"}

    ... gives me this:

    May 05 2011 +01:00 MET 7200

    —-

    Any idea what might be causing this?

    Is there perhaps a way I can mathematically add an extra hour inside the custom field tag? If yes, what would the syntax be?

    Note: I’m on Build: 20101220.

    [Mod Edit: Moved to the EE 2 Technical Support forum]

  • #2 / May 06, 2011 6:51am

    Haarball

    36 posts

    Oh, man, I’m nearly falling off the edge of the cliff here. Or the first page.

    I assume this is a complete unknown seeing as I’m not getting any replies, but can anyone confirm that? Have similar issues been raised in here before ? I searched and found references to several date discrepancies, but none quite like mine.

  • #3 / May 06, 2011 12:17pm

    Sue Crocker

    26054 posts

    Hi, Haarball. We work in a queuing system, your question just got to the top of the queue. Sorry for the delay.

    One thing to check.. did you switch your user over to DST being on? I saw the same thing with the entry date being in the past by one hour until I switched over.

    Does that help?

  • #4 / May 06, 2011 2:57pm

    Haarball

    36 posts

    Ah, didn’t know it worked like that. Yes! That worked. Thanks, Sue—can’t believe I forgot to check there.

    DST was set to No on my user, but Yes in the admin panel. Is this completely manual, though? Do I have to set this back for all the users and the system itself in half a year?

  • #5 / May 08, 2011 5:59pm

    Sue Crocker

    26054 posts

    Yes, you do need to switch them manually. It’s easier for you to do that twice a year than to depend on users doing it. 😊

    Does that help?

  • #6 / May 09, 2011 4:45am

    Haarball

    36 posts

    Yeah, I just thought the system might solve that itself when time comes. 😉

    Thanks, Sue.

  • #7 / May 10, 2011 8:34am

    Sue Crocker

    26054 posts

    It would be nice if it did, but different parts of the world switch over at different times. 😊

    Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases