Skip to content
Browse files

parse another json time I found

  • Loading branch information...
1 parent 5940484 commit a42ea8106dd6fe38d64ba1f8fa49accf0ae08877 @jchris committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 dh_date.erl
View
3 dh_date.erl
@@ -115,6 +115,9 @@ parse([Day,Month,Year,Hour,$:,Min,$:,Sec | PAM], _Now, _Opts)
%% Mon Oct 30 20:12:06 +0000 2006
parse([Month, Day, Hour, $:, Min, $:, Sec, _, 0, Year], _Now, _Opts) ->
{{Year, Month, Day}, {Hour, Min, Sec}};
+%% Mon, 12 Sep 2006 19:36:04 +0000
+parse([_C, Day, Month, Year, Hour, $:, Min, $:, Sec, _, 0], _Now, _Opts) ->
+ {{Year, Month, Day}, {Hour, Min, Sec}};
%% 2010-09-01T20:49:05
parse([Year, $-, Month, $-, Day, {bad_token,84}, Hour, $:, Min, $:, Sec], _Now, _Opts) ->

0 comments on commit a42ea81

Please sign in to comment.
Something went wrong with that request. Please try again.