Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-823

nuxeo-date-picker is showing one day more instead the day that it's really stored in the database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Not A Bug
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4.0
    • Component/s: Catalog

      Description

      Steps to reproduce:

      • Use a nuxeo-date-picker to edit a date in the create or edit form of a document type:
            <nuxeo-date-picker value="{{document.properties.dc:expired}}" 
                               label="[[i18n('label.dublincore.expire')]]" 
                               role="widget">
            </nuxeo-date-picker>
        
      • Select a day in the calendar, e.g.: 08/12/2018
      • Save your changes
      • Use the Export to JSON option in Nuxeo Dev Tools
      • Check the date of the field that you have modified, e.g.: dc:expired. It's storing one day before the selected date
           ...
            "dc:expired": "2018-12-07T23:00:00.000Z",
           ...
        

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: