Upgraded Self-Service Portal from 8.1.1.2016 to 8.4.3.2016 - now date fields are in UTC
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭@David_Hicks - This is a known issue, but there is a workaround:
Change C:\inetpub\CiresonPortal\Scripts\app\app.controls.js as follows:
Starting on line 417 change from:
settings.hasTimePicker
? $('[id="' + settings.name + '"]').val(val.toISOString())
: $('[id="' + settings.name + '"]').val(val.toISOString());
} else {
settings.hasTimePicker
? $('[name="' + settings.name + '"]').val(val.toISOString())
: $('[name="' + settings.name + '"]').val(val.toISOString());
}
Change it to:
settings.hasTimePicker
? $('[id="' + settings.name + '"]').val(kendo.toString(val, 'g'))
: $('[id="' + settings.name + '"]').val(kendo.toString(val, 'd'));
} else {
settings.hasTimePicker
? $('[name="' + settings.name + '"]').val(kendo.toString(val, 'g'))
: $('[name="' + settings.name + '"]').val(kendo.toString(val, 'd'));
}
Copy/Paste may wreck that formatting, but it should do the trick.6
Answers
Change C:\inetpub\CiresonPortal\Scripts\app\app.controls.js as follows:
Starting on line 417 change from:
settings.hasTimePicker
? $('[id="' + settings.name + '"]').val(val.toISOString())
: $('[id="' + settings.name + '"]').val(val.toISOString());
} else {
settings.hasTimePicker
? $('[name="' + settings.name + '"]').val(val.toISOString())
: $('[name="' + settings.name + '"]').val(val.toISOString());
}
Change it to:
settings.hasTimePicker
? $('[id="' + settings.name + '"]').val(kendo.toString(val, 'g'))
: $('[id="' + settings.name + '"]').val(kendo.toString(val, 'd'));
} else {
settings.hasTimePicker
? $('[name="' + settings.name + '"]').val(kendo.toString(val, 'g'))
: $('[name="' + settings.name + '"]').val(kendo.toString(val, 'd'));
}
Copy/Paste may wreck that formatting, but it should do the trick.