[wp-hackers] peculiar problem on setting GMT
Stephen Rider
wp-hackers at striderweb.com
Thu Apr 16 12:58:00 GMT 2009
I think in terms of display (this is a theme issue I think) it would
be best to follow Jesse's suggestion: display both "blog" time (or
the reader's time if known), AND the author's time. If you order by
server time but display just the author's time, your readers will be
saying "Why are these out of order??"
:)
Stephen
On Apr 15, 2009, at 12:05 PM, SoJ Web wrote:
> Way ahead of you, made the plugin last night :-). I wasn't aware of
> that pre_option_gmt_offset filter, though, that'll make it simpler;
> many thanks. I'm doing some polishing and will upload it later.
>
>
> -Jeff
>
> On Apr 15, 2009, at 12:37 PM, Otto wrote:
>>
>> Ahh. Well, okay, for that you don't need any special display code at
>> all. Just a per-user timezone adjustment setting. Then, the post_date
>> will get set by the user values instead of the overall blog values,
>> and the_date() will display the author time more or less
>> automatically. If you want to get the gmt time of a post, you have to
>> use get_post_time() with the second parameter being true, just like
>> always.
More information about the wp-hackers
mailing list