Skip to content

Commit 3e6a8c6

Browse files
authored
Remove era aliases for Persian (#7124)
Fixes #7108
1 parent 60e61c3 commit 3e6a8c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/calendar/src/cal/persian.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use calendrical_calculations::rata_die::RataDie;
2525
///
2626
/// # Era codes
2727
///
28-
/// This calendar uses a single era code `ap` (aliases `sh`, `hs`), with Anno Persico/Anno Persarum starting the year of the Hijra. Dates before this era use negative years.
28+
/// This calendar uses a single era code `ap`, with Anno Persico/Anno Persarum starting the year of the Hijra. Dates before this era use negative years.
2929
///
3030
/// # Month codes
3131
///
@@ -85,7 +85,7 @@ impl DateFieldsResolver for Persian {
8585
era_year: i32,
8686
) -> Result<Self::YearInfo, UnknownEraError> {
8787
match era {
88-
b"ap" | b"sh" | b"hs" => Ok(era_year),
88+
b"ap" => Ok(era_year),
8989
_ => Err(UnknownEraError),
9090
}
9191
}

0 commit comments

Comments
 (0)