diff options
author | Simon Rettberg | 2017-12-01 11:07:05 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-01 11:07:05 +0100 |
commit | 80c1c7c9fd6532deb91d43ac81410774857f61b1 (patch) | |
tree | 687f01affdba7860b451001360191840c412c26a /modules-available/locationinfo/templates | |
parent | [runmode] Varname mismatch (diff) | |
download | slx-admin-80c1c7c9fd6532deb91d43ac81410774857f61b1.tar.gz slx-admin-80c1c7c9fd6532deb91d43ac81410774857f61b1.tar.xz slx-admin-80c1c7c9fd6532deb91d43ac81410774857f61b1.zip |
[locationinfo] Month is 0-based in js
Diffstat (limited to 'modules-available/locationinfo/templates')
-rwxr-xr-x | modules-available/locationinfo/templates/frontend-default.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/templates/frontend-default.html b/modules-available/locationinfo/templates/frontend-default.html index cb427b26..f43daefd 100755 --- a/modules-available/locationinfo/templates/frontend-default.html +++ b/modules-available/locationinfo/templates/frontend-default.html @@ -428,7 +428,7 @@ optional: var time = false; var p = result.time.split('-'); if (p.length === 6) { - time = new Date(p[0], p[1], p[2], p[3], p[4], p[5]); + time = new Date(p[0], (p[1] - 1), p[2], p[3], p[4], p[5]); console.log(time); } if (time === false || isNaN(time.getTime()) || time.getFullYear() < 2010) { |