Hi,

I seem to be having an issue with timestamps when my project is
compiled (It works fine in Hosted mode). I know why, im just wondering
if anyone could tell me a quick way around my problem. So heres my
code on the client:

                                //Format the timestamp
                                Timestamp newOrderTimeStamp = Timestamp.valueOf
(data.newOrderTimeStampArrayList.get(i).toString());
                                //System.out.println("newOrderTimeStamp: " + 
newOrderTimeStamp);
                                DateTimeFormat timeFormat = 
DateTimeFormat.getShortTimeFormat();
                                Label newOrderTimeStampLabel = new 
Label(timeFormat.format
(newOrderTimeStamp) + "  ");

                                //Calculated minutes passed since order 
submitted
                           long currentTime = currentTimeStamp.getTime();
                           long tsTime = newOrderTimeStamp.getTime();
                           long calculatedTime = currentTime - tsTime;
                           long minutesSinceOrderSubmittedLong = 
(calculatedTime / 1000) /
60;
                           Label  minutesSinceOrderSubmittedLabel = new Label
(minutesSinceOrderSubmittedLong + " minutes ago");


So basically it seems that Timestamp which is of type
java.sql.Timestamp works fine in hosted mode, but when compiled does
not work. Is there a GWT equivalent to java.sql.Timestamp??

Or does anyone have any other suggestions on how to use timestamps on
the client?

Regards,
Jack

--~--~---------~--~----~------------~-------~--~----~
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