Skip to content

Commit c82aec2

Browse files
authored
Correctly produce ethioaa from calendar_algorithm (#7321)
intl402/Temporal/PlainDate/prototype/withCalendar/calendar-time-string intl402/Temporal/PlainDateTime/prototype/withCalendar/calendar-time-string intl402/Temporal/ZonedDateTime/prototype/withCalendar/calendar-time-string
1 parent b6791e7 commit c82aec2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/calendar/src/cal/ethiopian.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ impl Calendar for Ethiopian {
250250
}
251251

252252
fn calendar_algorithm(&self) -> Option<crate::preferences::CalendarAlgorithm> {
253-
Some(crate::preferences::CalendarAlgorithm::Ethiopic)
253+
match self.0 {
254+
EthiopianEraStyle::AmeteMihret => Some(crate::preferences::CalendarAlgorithm::Ethiopic),
255+
EthiopianEraStyle::AmeteAlem => Some(crate::preferences::CalendarAlgorithm::Ethioaa),
256+
}
254257
}
255258
}
256259

0 commit comments

Comments
 (0)