Skip to content
Snippets Groups Projects
Commit ed9d751f authored by Tobias Kuhnert's avatar Tobias Kuhnert
Browse files

changed default date and time to current utc date and time

parent d4e203a8
No related branches found
No related tags found
1 merge request!120Resolve "Switch to date time picker for mount & unmount actions"
......@@ -184,14 +184,14 @@ export default class DateTimePicker extends Vue {
if (this.isValueValidByCurrentFormat(this.textInput)) {
return this.parseToCurrentFormat().toFormat(DEFAULT_DATE_FORMAT)
}
return new Date().toISOString().substr(0, 10)
return DateTime.now().setZone('UTC').toFormat(DEFAULT_DATE_FORMAT)
}
get timePart (): string {
if (this.isValueValidByCurrentFormat(this.textInput)) {
return this.parseToCurrentFormat().toFormat(DEFAULT_TIME_FORMAT)
}
return '00:00'
return DateTime.now().setZone('UTC').toFormat(DEFAULT_TIME_FORMAT)
}
setTextInputByValue (datetimeValue: DateTime | null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment