[wp-hackers] peculiar problem on setting GMT
SoJ Web
sojweb at indiana.edu
Tue Apr 14 18:38:55 GMT 2009
Actually, it ought to be fairly simple. If you stored a user time zone
as user meta data, then made some filters to hook into the post and
comment time functions, you could look at the post author, get their
time zone, and modify the date accordingly. If they don't have a time
zone, fall back to the blog time zone. It's hard to believe someone
hasn't done this already... I might try it if I can't find anything.
-Jeff
On Apr 14, 2009, at 14:24 PM, Beau Lebens wrote:
> I'd love to see something along the lines where the blog itself was
> allocated a timezone (e.g. where the server is/where the site is
> hosted), and each user inherit that TZ by default, but be able to
> choose their own. That way the blog's timezone (correlated with the
> user's timezone) could be used to calculate the date (in GMT) before
> storage, and then each user's timezone could be used to show the
> correct time (in their local time) when displaying content.
>
> That being said, it's probably quite a lot of change to do that
> everywhere that dates/times are used :)
>
>
>
> On Tue, Apr 14, 2009 at 11:12 AM, SoJ Web <sojweb at indiana.edu> wrote:
>> Indeed. I think it would be helpful, too, to, in that case, also
>> display the
>> GMT offset. You could end up with a post published at 3 p.m.
>> showing up
>> after a post published at 1 p.m., which would look odd in
>> reverse-chronological order unless it were clear that they were
>> published in
>> different time zones.
>>
>>
>> -Jeff
>>
>> On Apr 14, 2009, at 13:24 PM, Simon Wheatley wrote:
>>
>>> On Tue, Apr 14, 2009 at 6:13 PM, technocraze <technocraze at gmail.com>
>>> wrote:
>>>>
>>>> My view is that we should set GMT for users rather than blogs.
>>>> Your views please.
>>>>
>>>
>>> This sounds like a very handy plugin for someone to write. ;)
>>>
>>> S
>>>
>>>
>>> ---
>>> Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
>>> Registered office: 7 Malton Av, Manchester, M21 8AT
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>
>
> --
> Beau Lebens
> Dented Reality
> beau at dentedreality.com.au
> http://dentedreality.com.au
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list