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 Localization problem in weblog tag

February 27, 2009 3:01pm

Subscribe [1]
  • #1 / Feb 27, 2009 3:01pm

    Alejandro Mut

    12 posts

    Hi,

    I’m listing my entries by day and I’m having problems with the results, with some entries falling into the previous day’s listing.

    I’m using the standard weblog tag with the date on the year, month and day parameters:

    {exp:weblog:entries weblog="my_weblog" year="2009" month="2" day="27"}

    I have default localization settings set to GMT. It is a news site and I want to have my entries posted and shown on GMT, for international reference. The server is a hosting located on -8:00 (which is simply incidental since neither my target audience nor any other important reference is located there, so I do not wish the server to affect my dates in any way).

    What seems to be happening is that entries posted before 8:00am GMT are retrieved on the listing for the day before. That is, an entry posted say on Feb. 27 2009 07:30am GMT is not listed for the 27th but for the 26th.

    However, {entry_date} displays the correct time.

    Is there a way to have everything work based on GMT times?

    Any help MUCH appreciated. Thanks!

  • #2 / Mar 03, 2009 10:05pm

    Alejandro Mut

    12 posts

    Anyone? I’d really appreciate some help with this one.

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases