Hi David,

There's actually built in PHP functionality for this : 
http://uk2.php.net/manual/en/class.datetimezone.php

Although I haven't yet implemented this, I will be doing so shortly. I  
expect I'll save the abbreviated timezone into the users profile,  
rather than the UTC offset. Reason being that the UTC offset can  
change throughout the year. Clocks go forwards and backwards at  
different times in some countries.

These two links should help you out : http://www.w3.org/TR/timezone/  
and this : http://www.twinsun.com/tz/tz-link.htm

On 4 Mar 2009, at 14:04, heathd wrote:

>
> Hi,
>
> back in sept 2008 there was an inconclusive discussion of this:
> http://tinyurl.com/cy37oj
>
> The objective is to allow users to specify their own timezone and have
> date/times displayed accordingly. Dates/times would be stored in UTC
> internally in the database.
>
> I've looked a bit at the code and can't see any support for this in
> sfDateFormat nor any way of cleanly adding such support. To make it
> work I think I'd need to rewrite sfDateFormat, something I'm reluctant
> to do.
>
> Before I press ahead with this can anyone tell me:
>  a) have you already solved this somehow?
>  b) if not, is there support for implementing this and getting it
> into the core release? (anyone willing to help?)
>
> I'm still running on sf1.0 so would need to do an implementation that
> would work with that release.
>
> Looking forward to hearing from you.
>
> David
> >

Lee Bolding
[email protected]

"a successful framework finds users and sucks and diddles their  
genitalia, it doesnt bend them over and make them squeel like stuck  
pigs." Hani Suleiman, The Bile Blog


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to