diff options
Diffstat (limited to 'fastos')
-rw-r--r-- | fastos/src/vespa/fastos/timestamp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastos/src/vespa/fastos/timestamp.cpp b/fastos/src/vespa/fastos/timestamp.cpp index b671aa15b71..bc865448e5a 100644 --- a/fastos/src/vespa/fastos/timestamp.cpp +++ b/fastos/src/vespa/fastos/timestamp.cpp @@ -43,7 +43,7 @@ int64_t ClockSystem::now() } time_t time() { - return duration_cast<seconds>(system_clock::now().time_since_epoch()).count(); + return system_clock::to_time_t(system_clock::now()); } } |