We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aeafe7 commit ccdfab4Copy full SHA for ccdfab4
1 file changed
src/builtins/core/instant.rs
@@ -236,12 +236,8 @@ impl Instant {
236
}
237
238
// TODO: May end up needing a provider API during impl
239
- pub fn to_zoned_date_time_iso(&self, time_zone: TimeZone) -> TemporalResult<ZonedDateTime> {
240
- Ok(ZonedDateTime::new_unchecked(
241
- *self,
242
- Calendar::from_utf8(b"iso8601")?,
243
- time_zone,
244
- ))
+ pub fn to_zoned_date_time_iso(&self, time_zone: TimeZone) -> ZonedDateTime {
+ ZonedDateTime::new_unchecked(*self, Calendar::default(), time_zone)
245
246
247
0 commit comments