Skip to content

Commit

Permalink
Fix the typo that's returning milliseconds instead of microseconds (#184
Browse files Browse the repository at this point in the history
)

See title.
  • Loading branch information
nekevss authored Jan 25, 2025
1 parent 24aa6c4 commit 68690c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builtins/core/zoneddatetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ impl ZonedDateTime {
provider: &impl TimeZoneProvider,
) -> TemporalResult<u16> {
let iso = self.tz.get_iso_datetime_for(&self.instant, provider)?;
Ok(iso.time.millisecond)
Ok(iso.time.microsecond)
}

/// Returns the `nanosecond` value for this `ZonedDateTime`.
Expand Down

0 comments on commit 68690c6

Please sign in to comment.