Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Fix the format for converting discords Timestamps to Time #29

Merged
merged 1 commit into from Oct 18, 2016

Conversation

greenbigfrog
Copy link
Contributor

(I'm just assuming that discord uses the same formatting for time in the Gateway)

@@ -8,7 +8,7 @@ module Discord
id: {type: UInt64, converter: SnowflakeConverter},
channel_id: {type: UInt64, converter: SnowflakeConverter},
author: User,
timestamp: {type: Time, converter: Time::Format::ISO_8601_DATE},
timestamp: {type: Time, converter: Time::Format.new("%FT%T.%L%:z")},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be extracted into a constant so that it isn't instantiated on every parse.

Copy link
Contributor

@RX14 RX14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you turn this into one single commit?

@meew0 meew0 merged commit 0b619fb into discordcr:master Oct 18, 2016
@greenbigfrog greenbigfrog deleted the time-format branch January 22, 2018 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants