diff options
author | Peter Hamberg <Zazcallabah@users.noreply.github.com> | 2017-09-21 09:08:21 +0200 |
---|---|---|
committer | Tyler Mauthe <me@tylermauthe.com> | 2017-09-21 00:23:43 -0700 |
commit | fa7cf47e28a4ac1636e947c269ed83abe49a1491 (patch) | |
tree | a20df5e797843574255d68461234ddeb5c86e6b1 | |
parent | 1ea92c857003a3fca707bf3523a930639aa8a197 (diff) |
don't multiply the updatedAt timestamp by 1000
The updatedAt timestamp has already been multiplied by 1000 at https://github.com/Smashing/smashing/blob/master/lib/dashing/app.rb#L141
so there is no need to multiply it again.
See https://github.com/Smashing/smashing/commit/fce2ae11158aa39d1a3a5572707a997384afc6fc
-rw-r--r-- | javascripts/dashing.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascripts/dashing.coffee b/javascripts/dashing.coffee index a85d595..58218ae 100644 --- a/javascripts/dashing.coffee +++ b/javascripts/dashing.coffee @@ -46,7 +46,7 @@ class Dashing.Widget extends Batman.View @accessor 'updatedAtMessage', -> if updatedAt = @get('updatedAt') - timestamp = new Date(updatedAt * 1000) + timestamp = new Date(updatedAt) hours = timestamp.getHours() minutes = ("0" + timestamp.getMinutes()).slice(-2) "Last updated at #{hours}:#{minutes}" |