Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch Admin displays incorrect Dates Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Batch Admin displays incorrect Dates

    Spring batch admin is currently displaying all dates 10 hours earlier than they actuallly are. My timezone is GMT +10 which would explain why this is happening; Spring Batch Admin is display the times in GMT. How can I stop this from happening? The times in the actual database are displaying correctly when selected.

  • #2
    Originally posted by afryer View Post
    Spring batch admin is currently displaying all dates 10 hours earlier than they actuallly are.
    That depends on your point of view I suppose. Batch Admin just uses SimpleDateFormat to format the times, and that is a bit of a can of worms. I would have expected it to pick up the default timezone from your locale - is your JVM or OS set up in GMT? If you care deeply open a JIRA (http://jira.springframework.org/browse/BATCHADM).

    Comment


    • #3
      Think I found the cause

      The timezone is hardcoded in the org.springframework.batch.admin.web.JobExecutionCo ntroller 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")));

      Comment


      • #4
        date display in GMT only

        I raised a JIRA issue http://jira.springframework.org/browse/BATCHADM-29

        Comment

        Working...
        X