in fact localtime is correct if server admin runs server in GMT

Revert "#441 change localtime to gmtime"

This reverts commit 779e0a618d.
This commit is contained in:
Oliver Gorwits
2018-10-19 15:08:38 +01:00
parent 1baa6dacc6
commit fb3ef12854
4 changed files with 8 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ package App::Netdisco::Util::Statistics;
use Dancer qw/:syntax :script/;
use Dancer::Plugin::DBIC 'schema';
use Time::Piece; # for OO gmtime
use Time::Piece; # for OO localtime
use base 'Exporter';
our @EXPORT = ();
@@ -40,7 +40,7 @@ sub update_stats {
$schema->txn_do(sub {
$schema->resultset('Statistics')->update_or_create({
day => gmtime->ymd,
day => localtime->ymd,
device_count =>
$schema->resultset('Device')->count_rs->as_query,