Skip to content

Commit

Permalink
change parse format
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoto7250 committed Aug 22, 2022
1 parent a8806ed commit 34b96fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,11 @@ 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]");
format_description!("[hour]:[minute]:[second].[subsecond]");
pub static FORMAT_DATETIME: &[FormatItem<'static>] =
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]"
);
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");
}

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

0 comments on commit 34b96fb

Please sign in to comment.