Skip to content

Commit

Permalink
Fix for #15
Browse files Browse the repository at this point in the history
  • Loading branch information
Xh4H authored Sep 30, 2019
1 parent a2ed4d7 commit 2bf7d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ process_id(s::Snowflake) = (s & 0x1f000) >> 12
increment(s::Snowflake) = s & 0xfff

# Discord sends both Unix and ISO timestamps.
datetime(s::Int) = unix2datetime(s / 1000)
datetime(s::Int64) = unix2datetime(s / 1000)
datetime(s::AbstractString) = DateTime(replace(s, "+" => ".000+")[1:23], ISODateTimeFormat)
datetime(d::DateTime) = d

Expand Down

0 comments on commit 2bf7d97

Please sign in to comment.