Uploaded image for project: 'Spring Batch Admin'
  1. Spring Batch Admin
  2. BATCHADM-29

Dates are displayed in GMT instead of using the locale of the jvm

    Details

    • Type: Defect
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0.M3
    • Component/s: Manager
    • Labels:
      None

      Description

      Version 1.0.0.CI-SNAPSHOT

      The timezone is hardcoded in the org.springframework.batch.admin.web.JobExecutionController class.
      In this class you see the following hardcoding of timezone to GMT all over the place...

      model.addAttribute(new JobExecutionInfo(jobExecution, TimeZone.getTimeZone("GMT")));

      I think it would be better to default the timezone to the users locale and make it possible to override it using a configuration setting. I'm in a GMT+10 timezone so displaying GMT times makes times appear way off and there is no indication on the web page that the time is displayed in GMT.

        Attachments

          Activity

            People

            • Assignee:
              david_syer Dave Syer
              Reporter:
              afryer Anthony Fryer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 1h
                1h