Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Nov 7, 2024
1 parent 15e1d64 commit ea66375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/datetime/src/format/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ where
input!(year = input.year);
input!(related_iso = year.related_iso());

// Always in latin digits according to spec
FixedDecimal::from(related_iso)
.padded_start(l.to_len() as i16)
.write_to(w)?;
Expand Down
1 change: 1 addition & 0 deletions components/datetime/src/format/time_zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ impl Iso8601Format {
return sink.write_char('Z');
}

// Always in latin digits according to spec
FixedDecimal::from(offset.hours_part())
.padded_start(2)
.with_sign_display(fixed_decimal::SignDisplay::Always)
Expand Down

0 comments on commit ea66375

Please sign in to comment.