Skip to content

Commit

Permalink
Removes the time_to_string helper method
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 12, 2012
1 parent 0ed1646 commit c2afda3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/assets/javascripts/backbone/helpers/utils.js.coffee
Expand Up @@ -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 }"

0 comments on commit c2afda3

Please sign in to comment.