BCR icon indicating copy to clipboard operation
BCR copied to clipboard

Time Zone is incorrect for Iran new no DST time zone

Open kingofnull opened this issue 2 years ago • 4 comments

This month we have time zone change in our local time. I replace tzdata and system and any app I know is showing time correctly (also date command in terminal does that). But BCR show both time and timezone incorrectly (it shows previsions timezone). I wonder this is a bug or Android needs some patches that I'm missing it?

More info:

  • Android : 9 MIUI 11.0.11
  • Magisk : 25.3
  • Region: Iran
  • System TimeZone : 03:30
  • BCR Timezone : 04:30

kingofnull avatar Mar 31 '23 07:03 kingofnull

Hmm, I'm not sure what would cause this. BCR just uses the standard DateTimeFormatterBuilder API to create the timestamp. As far as I'm aware, that should respect the system's tzdata like everything else.

chenxiaolong avatar Mar 31 '23 17:03 chenxiaolong

Hmm, I'm not sure what would cause this. BCR just uses the standard DateTimeFormatterBuilder API to create the timestamp. As far as I'm aware, that should respect the system's tzdata like everything else.

Is there any any other way to system check system time zone as a reference? Terminal date and system ui are showing correct time zone (03:30). But there is another app named time zone converter that show it wrong!

kingofnull avatar Apr 03 '23 16:04 kingofnull

I'm not familiar with Android's timezone internals at all, but I did some searching and it seems there are two timezone databases:

  • The regular tzdata used by CLI commands and system components: /system/usr/share/zoneinfo/*
  • The ICU tzdata used by APIs that are aware of internationalization: /system/usr/icu/*.dat

Do you know if both of those are being updated? If so, I'm not sure what else might be wrong.

chenxiaolong avatar Apr 04 '23 04:04 chenxiaolong

I'm not familiar with Android's timezone internals at all, but I did some searching and it seems there are two timezone databases:

  • The regular tzdata used by CLI commands and system components: /system/usr/share/zoneinfo/*
  • The ICU tzdata used by APIs that are aware of internationalization: /system/usr/icu/*.dat

Do you know if both of those are being updated? If so, I'm not sure what else might be wrong.

I can't replace icu files they are not available from android tzdata repo and they seems to be ROM dependent and I didn't find any instruction about building icu file (icudt60i.dat) for MIUI 11.

kingofnull avatar Apr 05 '23 05:04 kingofnull