Hi Betty,
Wouldn't it be easier just to create a
SimpleTimeZone for the relevant country (rather than creating a "GMT+1" time zone)?
Is not the country you require listed in the list returned by the "getAvailableIDs()" method in class
java.util.TimeZone?
In any case, the
javadocs for the "TimeZone" class explain how to set up a "custom" time zone:
If the time zone you want is not represented by
one of the supported IDs, then a custom time
zone ID can be specified to produce a TimeZone.
The syntax of a custom time zone ID is:
CustomID:
GMT Sign Hours : Minutes
GMT Sign Hours Minutes
GMT Sign Hours
Sign: one of
+ -
Hours:
Digit
Digit Digit
Minutes:
Digit Digit
Digit: one of
0 1 2 3 4 5 6 7 8 9
Hours must be between 0 to 23 and Minutes must
be between 00 to 59. For example, "GMT+10"
and "GMT+0010" mean ten hours and ten minutes
ahead of GMT, respectively.
Hope this helps.
Good Luck,
Avi.