Add a formatting constant for sending dates to client

This commit is contained in:
Nathan Gray 2015-08-05 21:22:15 +00:00
parent 2c7814b39c
commit 51ab65131f

View File

@ -45,6 +45,11 @@ class egw_time extends DateTime
* Database timestamp format: Y-m-d H:i:s * Database timestamp format: Y-m-d H:i:s
*/ */
const DATABASE = 'Y-m-d H:i:s'; const DATABASE = 'Y-m-d H:i:s';
/**
* etemplate2 format for ignoring timezones in the browser
*/
const ET2 = 'Y-m-d\TH:i:s\Z';
/** /**
* DateTimeZone of server, read from $GLOBALS['egw_info']['server']['server_timezone'], set by self::init() * DateTimeZone of server, read from $GLOBALS['egw_info']['server']['server_timezone'], set by self::init()
* *