Bug in get_gmt_from_date()?
-
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? :-}
- The topic ‘Bug in get_gmt_from_date()?’ is closed to new replies.