Skip to content

Commit

Permalink
Add disclaimer to short generic location format (#6095)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored Feb 11, 2025
1 parent 7e935fe commit 945e5c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/datetime/src/fieldsets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ macro_rules! impl_zone_combo_helpers {
}
/// Associates this field set with a short generic non-location format time zone, as in
/// “PT”.
///
/// Note: short time zones names are usually only available for time zones in the country
/// associated with a locale (so "PT" is in `en`, but not in `en-GB`). Most time zones will
/// fall back to the significantly longer location format (e.g. "Los Angeles Time" for `en-GB`).
#[inline]
pub fn with_zone_generic(self) -> Combo<Self, Vs> {
Combo::new(self, Vs::new())
Expand Down Expand Up @@ -1512,6 +1516,10 @@ impl_zone_marker!(
);

impl_zone_marker!(
/// Note: short time zones names are usually only available for time zones in the country
/// associated with a locale (so "PT" is in `en`, but not in `en-GB`). Most time zones will
/// fall back to the significantly longer location format (e.g. "Los Angeles Time" in `en-GB`).
///
/// Since non-location names might change over time,
/// this time zone style requires a reference time.
///
Expand Down

0 comments on commit 945e5c2

Please sign in to comment.