summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.php b/lib.php
index dac2441..ad5e5ab 100644
--- a/lib.php
+++ b/lib.php
@@ -232,7 +232,7 @@ function plural($num)
function key2timestamp($key) {
global $tz;
- $date = DateTime::createFromFormat("YmdHis", $key+0, $tz);
+ $date = DateTime::createFromFormat("YmdHis", (int)$key, $tz);
if ($date === false)
return null;