My app lists activities retrieved from DB.
Every activity has it's 'date'.
So I have two different activities. Let's say Act#1 and Act#2.
Associated dates in DB are (just to make sure that this dates' values
are stored properly):
<code>
select to_char(act_date, 'yyyy/MM/dd HH24:mi') from
crm_test.activities;
</code>
results:
Act#1: 2008/12/30 23:23
Act#1: 2009/01/02 23:23
Everything's fine at DB side.
the code (server side) used to get those dates from DB is:
<code>
activity.setDate(new java.util.Date(rs.getTimestamp("act_date").getTime
()));
</code>
<code>System.out.println(new SimpleDateFormat("MM/dd HH:mm").format
(activity.getDate()));</code> at this point still returns correct
values.
The problem occurs when I try to print this dates at client side:
<code>Label actDate = new Label(DateTimeFormat.getFullDateTimeFormat
().format(act.getDate()));</code>
Result is:
Act#1: Tuesday, December 30, 2008 12:00:00 AM Etc/GMT-1
Act#2: Friday, January 2, 2009 11:23:00 PM Etc/GMT-1
And this is wrong. Why does Act#1 suddenly loose it's time? It should
be 11:23:00 PM as well.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---