Fix calendar events off by 1 minute

This commit is contained in:
nathan 2022-05-02 14:10:59 -06:00
parent 8ef591279d
commit 1de2a89eeb

View File

@ -341,6 +341,7 @@ export class et2_calendar_view extends et2_valueWidget
date.setUTCHours(0); date.setUTCHours(0);
date.setUTCMinutes(0); date.setUTCMinutes(0);
date.setUTCSeconds(0); date.setUTCSeconds(0);
date.setUTCMilliseconds(0);
} }
// Check for full timestamp // Check for full timestamp
else if(typeof _value == 'string' && _value.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})(?:\.\d{3})?(?:Z|[+-](\d{2})\:(\d{2})|)$/)) else if(typeof _value == 'string' && _value.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})(?:\.\d{3})?(?:Z|[+-](\d{2})\:(\d{2})|)$/))