Skip to content

Commit

Permalink
No Z or +XX:XX
Browse files Browse the repository at this point in the history
Eventual Consistency:tm:
  • Loading branch information
foxbot committed Dec 19, 2016
1 parent 66546d3 commit dd7a32d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/builder/create_embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));

Expand Down

0 comments on commit dd7a32d

Please sign in to comment.