[patch] mauve testsuite sql Timestamp

Andreas Tobler toa@pop.agri.ch
Sun Oct 10 16:23:00 GMT 2004


Andreas Tobler wrote:

> 
> Ok, as found last night, this only works for people like Michael and me 
> who sit in the same timezone.
> 
> To make it work for everyone I tried to set a default timezone in the 
> test, but I fail. I get it to work in a standalone test without mauve.
> But not in this one.
> What do I miss/what do I do wrong?
> 
> I do this just before I create a new timestamp:
> 
>     // Set a common timezone to get the same result everywhere.
>     SimpleTimeZone stz = new SimpleTimeZone(0 * 3600, "GMT");
>     TimeZone.setDefault(stz);

I think I found it.

with the attached patch it seems to werk and hopefully also for all 
people not sitting in my timezone :)

ANdreas


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: timestamp.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041010/82932d12/attachment.ksh>


More information about the Java-patches mailing list