Skip to content

Commit 3661fd1

Browse files
committed
Fix timestamp for infinity
1 parent e799710 commit 3661fd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Usage/Adapter/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function log(string $metric, int $value, string $period = '1h', array $ta
6565

6666
$now = new \DateTime();
6767
$time = $period === 'inf'
68-
? '1000-01-01 00:00:00'
68+
? null
6969
: $now->format(Usage::PERIODS[$period]);
7070

7171
// Sort tags for consistent storage

0 commit comments

Comments
 (0)