Files
sdk/runtime/vm
Brian Quinlan 6027bcb1e2 Call tzset() before localtime_r().
POSIX and glibc do not guarantee that tzset() is called by localtime_r(). tzset sets the timezone name, UTC offset and whether or not it is daylight savings time.

Android <= 7.1.1 did *not* call tzset() in localtime_r(), which means that users will see their timezone as "GMT".

macOS/iOS seem to guarantee that tzset() is called by localtime_r() but the wording is vague:

  localtime_r() and gmtime_r() functions provide the same functionality
  as localtime() and gmtime()...

N.B.: localtime() is guaranteed to call tzset().

tzset() must be called before each localtime_r() to catch the case where the user changes the timezone while the application is running.

Bug:https://github.com/dart-lang/sdk/issues/53276
Change-Id: I0503a0a109aa6c281c9a3aefe8ba0b54841a42a7
Tested: manually tested on Android 7.1.1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/336240
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Brian Quinlan <bquinlan@google.com>
2023-11-15 20:57:51 +00:00
..
2023-09-13 20:26:30 +00:00
2023-03-06 22:06:59 +00:00
2023-03-06 22:06:59 +00:00
2023-06-28 01:00:18 +00:00
2023-06-28 01:00:18 +00:00
2023-09-13 20:26:30 +00:00
2023-01-20 12:37:49 +00:00
2023-06-28 01:00:18 +00:00
2023-06-28 01:00:18 +00:00
2023-06-28 01:00:18 +00:00
2023-06-28 01:00:18 +00:00
2023-06-23 20:35:00 +00:00
2023-09-12 16:22:19 +00:00
2023-09-12 16:22:19 +00:00
2023-06-23 20:35:00 +00:00
2023-06-23 20:35:00 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2023-06-23 20:35:00 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-01-20 00:57:57 +00:00
2022-09-12 12:33:57 +00:00
2022-09-12 12:33:57 +00:00
2023-08-17 17:38:48 +00:00
2023-10-20 19:45:49 +00:00
2023-06-23 20:35:00 +00:00
2022-01-20 00:57:57 +00:00
2023-11-15 20:57:51 +00:00
2023-11-15 20:57:51 +00:00
2022-12-29 10:18:02 +00:00
2023-06-28 01:00:18 +00:00
2023-08-21 16:46:46 +00:00
2023-01-06 07:48:22 +00:00
2022-07-29 18:11:01 +00:00
2023-04-12 22:18:54 +00:00
2023-03-06 22:06:59 +00:00
2023-01-09 15:48:57 +00:00
2023-11-10 21:06:10 +00:00
2022-09-10 15:12:35 +00:00
2023-04-21 22:41:28 +00:00