U4-10615 - Create date and update date is missing on info tab

Created by Mads Rasmussen 01 Nov 2017, 12:05:27 Updated by Jacob Midtgaard-Olesen 04 Feb 2018, 17:31:06

Subtask of: U4-9432

On the new "info"-tab the create and updated dates area missing because moment.js is complaining about the date format.

The date format I get looks like this: createDate: "2017-11-01 11.42.28"

'''Warning''': moment-with-locales.js?cdv=1201443569:731 Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.

2 Attachments

Comments

Robert Copilau 02 Nov 2017, 15:03:56

Hey @madsrasmussen, I can't seem to get the same date format as you get.


Mads Rasmussen 06 Nov 2017, 10:26:14

@robertcopilau The problem started after I did a reinstall of my Windows VM so it might be some weird configurations being different somewhere. Would it be possible to send a raw date instead of a formatted one?


Robert Copilau 07 Nov 2017, 10:17:23

Hey @madsrasmussen, I am not quite sure what changes this involves, but I will pick the task up (if no one took it by then) and will be looking into it when I can.


Shannon Deminick 08 Nov 2017, 03:49:44

Just FYI There's been recent PR commits by the community that affect this. I've merged these into the 7.8 but with the 7.8 changes it means these changes are lost. In particular they are:

and these are based on this: http://issues.umbraco.org/issue/U4-6152

But now these changes are gone because we've put the dates directly on the model. This also means that if we want to show the dates as the user's locale format, we will need to ensure that the format the these dates gets sent to the client in are in a standard format (I think they should be) and then we need to use the user's locale in JS to format the dates to what the user should be seeing.


Priority: Normal

Type: Task

State: Open

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.8.0

Due in version:

Sprint:

Story Points:

Cycle: