• Anonymous User 88352

    (@anonymized-88352)


    Greetings:

    I’m a WP (2.0.3) newbie working on my first site. After importing some content in MT format I noticed that the UTC ‘pubDate’ in the RSS2 feed is sometimes off by an hour.

    Looking a bit at the WP code it appears that ‘get_gmt_from_date()’ uses the current ‘gmt_offset’ setting for all dates, even for dates in the “other” half of the year.

    In my case (in Switzerland), during summer time I’m 2 hours ahead of UTC; in winter it’s 1 hour. But when I run the MT import script now in June, it adds 2 hours to the local time for every entry, even those from December when the difference was 1 hour.

    Have I correctly identified a bug, or have I been over-anxious to get my WP up & running and overlooked something? :-}

Viewing 2 replies - 1 through 2 (of 2 total)
  • That function looks like it inserts the GMT date, there might be a non-GMT date function available, try removing gmt_ from the function name, see where that gets you.

    But before you do that, it might be worth checking whether or not it’s actually bad to have the GMT date in your RSS feed, it might be part of the RSS specification.

    Thread Starter Anonymous User 88352

    (@anonymized-88352)

    Yes, the UTC date is required in RSS spec. And I’m not questioning the usefulness of a UTC date. I am pointing out that the UTC date being stored in the WP ‘posts’ table during an MT import is sometimes incorrect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug in get_gmt_from_date()?’ is closed to new replies.