From 58c1545707601e7cd394890003addd7e9b4e7e7d Mon Sep 17 00:00:00 2001 From: Miroslav Prasil Date: Fri, 10 Aug 2018 17:17:44 +0100 Subject: [PATCH] Return revision date in miliseconds (fixes #127) --- src/api/core/accounts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index 03315d6..580ece9 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -244,6 +244,6 @@ fn delete_account(data: JsonUpcase, headers: Headers, conn: DbConn #[get("/accounts/revision-date")] fn revision_date(headers: Headers) -> String { - let revision_date = headers.user.updated_at.timestamp(); + let revision_date = headers.user.updated_at.timestamp_millis(); revision_date.to_string() }