Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1515

WeblogCalendarModel should use timezone setting of weblog consistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 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.

      Attachments

        Activity

          People

            djohnson David Johnson
            huang_miles Miles Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: