Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-4061

info.magnolia.ui.form.field.definition.DateFieldDefinition seems not to work correctly around summertime/wintertime change.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Neutral Neutral
    • None
    • None
    • None
    • None

      We have the following definition:

       class: info.magnolia.ui.form.field.definition.CompositeFieldDefinition
                      fields:
                        - name: date
                          time: false
                          type: Date
                          required: true
                          class: info.magnolia.ui.form.field.definition.DateFieldDefinition
      

      So we use it to indicate it a date.

      It does hoever start with indicating a time zone in gray. Currently it displays:

      Timezone: GMT + 1

      Last week (still in summertime) it indicated: GMT + 2.

      If someone last week indicate a date of this week, the date was stored according to GMT+2, and hence actually on the wrong date. (because dates are stored as timestamps at midnight)

      I propose:
      1. The timezone should be evaluated at the time of the time indicated, not at the current time.
      2. For date fields showing a timezone is a bit odd, and could be ommitted.

        Acceptance criteria

              Unassigned Unassigned
              mihxil Michiel Meeuwissen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD