mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
* All apps: Fix not able to set date for empty date fields in mobile template
This commit is contained in:
parent
51e41012e3
commit
5459267be2
@ -467,7 +467,7 @@ String: A string in the user\'s date format, or a relative date. Relative dates
|
||||
_value = date('Y-m-d\\TH:i:s\\Z', _value);
|
||||
}
|
||||
// Check for full timestamp
|
||||
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}))/))
|
||||
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})|)$/))
|
||||
{
|
||||
_value = new Date(_value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user