Skip to content

Commit

Permalink
Revert "change parse format"
Browse files Browse the repository at this point in the history
This reverts commit 34b96fb.
  • Loading branch information
kyoto7250 committed Sep 4, 2022
1 parent be4a743 commit 99097fd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,12 @@ pub mod time_format {

pub static FORMAT_DATE: &[FormatItem<'static>] = format_description!("[year]-[month]-[day]");
pub static FORMAT_TIME: &[FormatItem<'static>] =
format_description!("[hour]:[minute]:[second].[subsecond]");
format_description!("[hour]:[minute]:[second]");
pub static FORMAT_DATETIME: &[FormatItem<'static>] =
format_description!("[year]-[month]-[day] [hour]:[minute]:[second].[subsecond]");
pub static FORMAT_DATETIME_TZ: &[FormatItem<'static>] =
format_description!("[year]-[month]-[day] [hour]:[minute]:[second].[subsecond]Z");
format_description!("[year]-[month]-[day] [hour]:[minute]:[second]");
pub static FORMAT_DATETIME_TZ: &[FormatItem<'static>] = format_description!(
"[year]-[month]-[day] [hour]:[minute]:[second] [offset_hour sign:mandatory][offset_minute]"
);
}

#[cfg(feature = "with-time")]
Expand Down

0 comments on commit 99097fd

Please sign in to comment.