diff --git a/lib/Layout.php b/lib/Layout.php index fd6c484..d9e6ee2 100644 --- a/lib/Layout.php +++ b/lib/Layout.php @@ -6,7 +6,7 @@ class Layout function since($since) { - $since = time() - $since; + $since = time() - date("Z") - $since; $chunks = array( array(60 * 60 * 24 * 365 , 'year'), array(60 * 60 * 24 * 30 , 'month'), diff --git a/lib/import_revs.php b/lib/import_revs.php index 6672c23..7188e5a 100755 --- a/lib/import_revs.php +++ b/lib/import_revs.php @@ -177,7 +177,7 @@ function add_build($build, $chan, $version, $hash) if ($row["c"] === "0") { $DB->query(kl_str_sql("insert into builds (nr, chan, version, hash, modified) ". "values (!i, !s, !s, !s, !t)", - $build, $chan, $version, $hash, time())); + $build, $chan, $version, $hash, time() - date("Z"))); } }