aboutsummaryrefslogtreecommitdiff
path: root/src/utils/builder/create_embed.rs
diff options
context:
space:
mode:
authorChristopher F <[email protected]>2016-12-18 23:04:01 -0500
committerChristopher F <[email protected]>2016-12-18 23:04:01 -0500
commitdd7a32d6b3c4e685d5d6df586332567219263941 (patch)
treebba75090a202a07cd5bef484dee8659336e5bfb1 /src/utils/builder/create_embed.rs
parentAdd documentation regarding ISO-8601 to embeds (diff)
downloadserenity-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.rs7
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()));