We have moved to GitHub Issues
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.
Hey @madsrasmussen, I can't seem to get the same date format as you get.
@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?
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.
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.
Backwards Compatible: True
Affected versions: 7.8.0
Due in version: