Kapitaine wrote:
> <h3>LSParseDateTime Example - returns a
locale-specific date/time object</h3>
> <!--- loop through a list of locales and show date
values for Now()--->
locales have nothing to do w/timezones (tz). countries are
the closest "unit" to
a tz. you might try the info from this CFC:
http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entry&entry=8B31D607-20ED-7DEE-2AFB38EF88DA...
> However, all of the time returns 10:45!! Regardsless of
what locale each
> is...is this correct? I'm really confused.
yes that's correct. if you drive an italian car then swap to
a german one, does
the time change because it's made in germany?
> If someone could give me a primer on this for 2 minutes
that would be great. I
> just want dates that sync up together regardless of
where the user is in the
> world because my application is dependant on comparing
these times.
you have to get the user's tz via some mechanism client side,
you can try js BUT
the ids it returns don't match w/many java tz ids. you'll
also have to be aware
that tz differences between server & client (one w/DST,
one w/out DST) will mess
you up.
maybe start reading here:
http://www.sustainablegis.com/blog/cfg11n/index.cfm?mode=entry&entry=77223B6A-20ED-7DEE-2AB7FBB1F37A...
might be a good idea to use epoch offsets instead of raw
datetimes.
this CFC should help once you get the users tz:
http://www.sustainablegis.com/projects/tz/testTZCFC.cfm