From fa7cf47e28a4ac1636e947c269ed83abe49a1491 Mon Sep 17 00:00:00 2001 From: Peter Hamberg Date: Thu, 21 Sep 2017 09:08:21 +0200 Subject: 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 --- javascripts/dashing.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'javascripts') 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}" -- cgit v1.2.3