I want to track when a facility has been accessed, so I have a class
Facility that contains a List<Date>. The dates are stored in the
datastore just by calling a new Date() on the server side, so they are
stored in GMT timezone.

Now different people wants report on how many times a month the
facility has been accessed. The tricky part is that they want it in
their timezones.

For instance the facility has been accessed on 12/01 at 1:30 AM GMT

The event occurs in December for someone who lives in the UK but in
November for someone in the US. The report would show:
UK locale: November 0 December 1
US locale: November 1 December 0

My Facility class is in the shared folder so it can be used client and
server side. I have a RPC call that reads all entries and count them by
month. The problem is that the dates are in GMT, so the event above
will be counted for December for all users. Also I can’t use Calendar,
SimpleDateFormat, neither DateTimeFormat.

Another way to do that is to return the list of dates to the client,
and do the counting client side, so I can use DateTimeFormat, so the
date would be localized. The problem is that it increases the amount of
data sent over the wire.

So How do you manipulate GMT dates on the server side when the result
should be localized?


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to