diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-09-01 02:14:20 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-09-01 02:14:20 +0300 |
commit | 63e2726469d27886cb3a828a677af129e27236f7 (patch) | |
tree | 21fbdb79507e6f51087f7399d41ea6e829ed5bc8 /plugins/CoreHome/angularjs/common | |
parent | df31cfd4c16fc6e6cc2d74f93844e5b6647d0454 (diff) |
Always set hours to 0 for periods.getToday (#13373)
Diffstat (limited to 'plugins/CoreHome/angularjs/common')
-rw-r--r-- | plugins/CoreHome/angularjs/common/services/periods.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreHome/angularjs/common/services/periods.js b/plugins/CoreHome/angularjs/common/services/periods.js index ceb04eff9f..10a5b3153a 100644 --- a/plugins/CoreHome/angularjs/common/services/periods.js +++ b/plugins/CoreHome/angularjs/common/services/periods.js @@ -348,7 +348,8 @@ // apply piwik site timezone (if it exists) date.setHours((piwik.timezoneOffset || 0) / 3600); - // get rid of minutes/seconds/etc. + // get rid of hours/minutes/seconds/etc. + date.setHours(0); date.setMinutes(0); date.setSeconds(0); date.setMilliseconds(0); |