Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Zone is incorrect for Iran new no DST time zone #280

Open
kingofnull opened this issue Mar 31, 2023 · 4 comments
Open

Time Zone is incorrect for Iran new no DST time zone #280

kingofnull opened this issue Mar 31, 2023 · 4 comments
Assignees
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project

Comments

@kingofnull
Copy link

kingofnull commented Mar 31, 2023

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 kingofnull changed the title Time Zone is set incorrectly Time Zone is incorrect Mar 31, 2023
@kingofnull kingofnull changed the title Time Zone is incorrect Time Zone is incorrect for Iran new no DST time zone Mar 31, 2023
@chenxiaolong
Copy link
Owner

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 chenxiaolong self-assigned this Mar 31, 2023
@kingofnull
Copy link
Author

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!

@chenxiaolong
Copy link
Owner

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.

@kingofnull
Copy link
Author

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.

@chenxiaolong chenxiaolong added the bug/limitation elsewhere Bug/limitation in the ROM or another project label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/limitation elsewhere Bug/limitation in the ROM or another project
Projects
None yet
Development

No branches or pull requests

2 participants