| commit | 02db5b95e6e1968f73cd6d118650d8547c264ac2 | [log] [tgz] |
|---|---|---|
| author | Siva Annamalai <asiva@google.com> | Thu Nov 16 18:24:38 2023 +0000 |
| committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 16 18:24:38 2023 +0000 |
| tree | 89831c76edbe04122113da014157e6aa945d0352 | |
| parent | 18b5f25052fcefa85661e989750e14bd5e9c48e9 [diff] |
Revert "Call tzset() before localtime_r()." This reverts commit 6027bcb1e2b059b6f8b64b0927831cff83e238c7. Reason for revert: We are seeing TSAN failures in the bot runs Original change's description: > 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> Bug: https://github.com/dart-lang/sdk/issues/53276 Change-Id: I4bbadf2b69eeac583b7da605c0686bcc6f72081f No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/336721 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.