Skip to content

date: Include hash at compile time instead of HashMap-ping #10702

@oech3

Description

@oech3

static TZ_ABBREV_CACHE: OnceLock<HashMap<String, String>> = OnceLock::new();
/// Build timezone abbreviation lookup map from IANA database.
/// Uses preferred mappings for disambiguation, then searches all timezones.
fn build_tz_abbrev_map() -> HashMap<String, String> {
let mut map = HashMap::new();

I'm not 100% sure. But can we determine them at compile time? @xtqqczze

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions