Skip to content

Commit

Permalink
milliseconds should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jmosbech committed Feb 22, 2013
1 parent 4764e72 commit ce73ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeago.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TimeAgo

parse: (iso8601) ->
timeStr = $.trim(iso8601)
timeStr = timeStr.replace(/\.\d\d\d+/,"")
timeStr = timeStr.replace(/\.\d+/,"")
timeStr = timeStr.replace(/-/,"/").replace(/-/,"/")
timeStr = timeStr.replace(/T/," ").replace(/Z/," UTC")
timeStr = timeStr.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2")
Expand Down

0 comments on commit ce73ed3

Please sign in to comment.