Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0
-
None
-
An site with weblogs' timezone differ from system default timezone.
Description
The calendar model converts time between String and Date format with inconsistent time zone. Although a calendar member has been set with weblog's time zone configuration, system default time zone is still be used somewhere implicitly.
A patch file has been attached here. But it is more like an issue indicator than a final solution. Specifically, the two methods added would be better applied in DateUtil (which is not part of the weblogger app now), in a different manner.
The DateUtil may add a series of methods as getXXXDateFormat(Calendar cal), with Calendar as input parameter, generate time zone and locale aware DateFormat instances. Then all references to the getXXXDateFormat() methods shall be revised.