From 51ab65131f4ee41d6b5ea57891c091744ec84615 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 5 Aug 2015 21:22:15 +0000 Subject: [PATCH] Add a formatting constant for sending dates to client --- phpgwapi/inc/class.egw_time.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.egw_time.inc.php b/phpgwapi/inc/class.egw_time.inc.php index dd404a0ff8..8cd7b61614 100644 --- a/phpgwapi/inc/class.egw_time.inc.php +++ b/phpgwapi/inc/class.egw_time.inc.php @@ -45,6 +45,11 @@ class egw_time extends DateTime * Database timestamp format: 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() *