Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5501

Support of client timezones for java.util.Date, java.util.Timestamp and etc.

    XMLWordPrintableJSON

    Details

      Description

      That was surprise for me that wicket doesn't support convertion of java.util.Date, java.sql.Date, java.sql.Time, java.sql.Timestamp taking into account client timezone.
      I know about existing DateConverter/StyleDateConverter and etc. But it's not so easy to extend and reuse that for java.sql.* types.

      Please find in the attachment our implementation of date convertor which is taking into account client timezone and don't use org.joda.time. Hope that it can be included (maybe after some refactoring) into main branch. Please let me know your vision of this approach and if you are OK: let me go ahead and prepare patch.

        Attachments

        1. AbstractDateConverter.java
          5 kB
          Ilia Naryzhny

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              phantom Ilia Naryzhny
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: