From c2afda3d79f4fd87f272acba7079cfd0fe07f17f Mon Sep 17 00:00:00 2001 From: Akash Manohar J Date: Thu, 12 Apr 2012 21:50:58 +0530 Subject: [PATCH] Removes the time_to_string helper method Signed-off-by: Akash Manohar J --- .../javascripts/backbone/helpers/utils.js.coffee | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/assets/javascripts/backbone/helpers/utils.js.coffee b/app/assets/javascripts/backbone/helpers/utils.js.coffee index 1107a58b..0ab47fc2 100644 --- a/app/assets/javascripts/backbone/helpers/utils.js.coffee +++ b/app/assets/javascripts/backbone/helpers/utils.js.coffee @@ -25,15 +25,3 @@ class Kandan.Helpers.Utils @resetUnreadActivities: () -> @unreadActivities = 0 - - @time_to_string: (time) -> - return time if (typeof time != "object") - am = time.getHours() < 12 - hours = time.getHours() - ampm = "AM" if am == true - if am != true - ampm = "PM" - hours = hours - 12 if hours != 12 - minutes = time.getMinutes().toString() - minutes = "0#{minutes}" if minutes.length == 1 - return "#{ time.getDate() }-#{ @months[time.getMonth()].slice(0,3).toUpperCase() }-#{ time.getFullYear().toString().slice(2,4) } #{ hours }:#{ minutes } #{ ampm }"