Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.10
-
Fix Version/s: 1.8.3, 1.9-beta-4
-
Component/s: groovy-jdk
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
Currently there is no simple way to format a Date object within a time zone other that the system time zone.
A possible implementation would be
public static String format(Calendar self, String pattern, TimeZone tz)
{ SimpleDateFormat sdf = new SimpleDateFormat(pattern); sdf.setTimeZone(tz); return sdf.format(self); }