diff options
| author | Christopher F <[email protected]> | 2016-12-18 23:04:01 -0500 |
|---|---|---|
| committer | Christopher F <[email protected]> | 2016-12-18 23:04:01 -0500 |
| commit | dd7a32d6b3c4e685d5d6df586332567219263941 (patch) | |
| tree | bba75090a202a07cd5bef484dee8659336e5bfb1 /src/utils/builder/create_embed.rs | |
| parent | Add documentation regarding ISO-8601 to embeds (diff) | |
| download | serenity-dd7a32d6b3c4e685d5d6df586332567219263941.tar.xz serenity-dd7a32d6b3c4e685d5d6df586332567219263941.zip | |
No Z or +XX:XX
Eventual Consistency:tm:
Diffstat (limited to 'src/utils/builder/create_embed.rs')
| -rw-r--r-- | src/utils/builder/create_embed.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/builder/create_embed.rs b/src/utils/builder/create_embed.rs index e8f2e8d..95da366 100644 --- a/src/utils/builder/create_embed.rs +++ b/src/utils/builder/create_embed.rs @@ -160,12 +160,13 @@ impl CreateEmbed { /// Set the timestamp. /// - /// **Note:** This timestamp must be in ISO-8601 format. + /// **Note:** This timestamp must be in ISO-8601 format. It must also be + /// in UTC format. /// /// # Examples /// - /// `2017-01-03T23:00:00Z` - /// `2004-06-08T16:04:23-05:00` + /// `2017-01-03T23:00:00` + /// `2004-06-08T16:04:23` pub fn timestamp(mut self, timestamp: &str) -> Self { self.0.insert("timestamp".to_owned(), Value::String(timestamp.to_owned())); |