Skip to content

Time zone abbreviations not translating to French #440

@mstaro

Description

@mstaro

Key information

  • Joda-Time version: 2.9.9

Problem description

I'm submitting this as an issue since I haven't found a solution for this problem anywhere. France has translated versions for time zone abbreviations. To name a few English to French translations:

AKST -> HNAK
AKDT -> HEAK
CT -> HC
CST -> HNC
CDT -> HEC
ET -> HE
EST -> HNE

Program

As an example, I'm trying to obtain the translated equivalent for time zone AKDT (America/Anchorage), which should be HEAK:

String tz = DateTimeZone.forID("America/Anchorage").getShortName(DateTimeUtils.currentTimeMillis(), Locale.FRANCE);
// prints AKDT instead of HEAK
System.out.println(tz);

I'm aware that this might be an unsupported feature, so far it seems that only German translations are supported. Would there be any workaround to be able to obtain French translations?

Thanks!

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