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.

Timezone problems

September 27, 2013 10:09am

Subscribe [1]
  • #1 / Sep 27, 2013 10:09am

    timoteus

    25 posts

    When calling an extension on the hook “publish_form_entry_data” the function date_default_timezone_get() returns “UTC”, the same extension calls code on the “sessions_end” hook - if date_default_timezone_get() is called there it returns “System/Localtime”.

    As a result, calling $this->EE->localize->now returns different timestamps

    How can that be??

    In EE 2.6.1 the problem did not occur.

    Maybe a Bug?When calling an extention on the hook “publish_form_entry_data” the function date_default_timezone_get() Returns “UTC”, the same extention calls code on the “sessions_end” hook - if date_default_timezone_get() is called there it returns “System/Localtime”.
    How can that be??
    In EE 2.6.1 the problem did not occu

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

ExpressionEngine News!

#eecms, #events, #releases