summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/api.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2017-07-07 12:57:43 +0200
committerSimon Rettberg2017-07-07 12:57:43 +0200
commitae0e095995048d717e9b1d4515b36c8f861ec5eb (patch)
treeaf4b2615a8026a7235de7dad9d627c3cb4cd8207 /modules-available/locationinfo/api.inc.php
parent[syslog] Improved filtering with suggestions from existing log (diff)
downloadslx-admin-ae0e095995048d717e9b1d4515b36c8f861ec5eb.tar.gz
slx-admin-ae0e095995048d717e9b1d4515b36c8f861ec5eb.tar.xz
slx-admin-ae0e095995048d717e9b1d4515b36c8f861ec5eb.zip
[locationinfo] Try working around messy time handling (timezones etc), CSS
Webkit/Presto and Blink/Gecko (or rather the corresponding JS engine) disagree about how to handle certain date format strings wrt. time zones. This leads to nasty discrepancies of events being displayed in the calendar. (Unfortunately the students working on this project could not be convinced that properly handling time zones when dealing with time information should be considered important.) Also, some tweaks to CSS/layout have been implemented so the design isn't as messed up on old webkits that don't support flex layout.
Diffstat (limited to 'modules-available/locationinfo/api.inc.php')
-rw-r--r--modules-available/locationinfo/api.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php
index 767066f3..05af4111 100644
--- a/modules-available/locationinfo/api.inc.php
+++ b/modules-available/locationinfo/api.inc.php
@@ -257,7 +257,7 @@ function getConfig($paneluuid)
$config['ts'] = (int)$panel['lastchange'];
$config['locations'] = array_values($config['locations']);
- $config['time'] = date('Y-m-d H:i:s');
+ $config['time'] = date('Y-n-j-G-') . (int)date('i') . '-' . (int)(date('s'));
return $config;
}