diff options
author | Abseil Team <absl-team@google.com> | 2023-06-28 08:11:49 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-28 08:12:34 -0700 |
commit | 17014064a4ea367952eb4a595796f48c688c1467 (patch) | |
tree | 73027b56fab06c316693049e19010e774fb680ed /absl/time/internal/cctz/src/time_zone_impl.cc | |
parent | d65595c8dd994b47b7fdfdf9427bb546c577467b (diff) | |
download | abseil-17014064a4ea367952eb4a595796f48c688c1467.tar.gz abseil-17014064a4ea367952eb4a595796f48c688c1467.tar.bz2 abseil-17014064a4ea367952eb4a595796f48c688c1467.zip |
Rollback of CCTZ update due to crash in clang ObjcLink.
PiperOrigin-RevId: 544060862
Change-Id: I6ca631385826f6e10f6c3eeec1af532402d0b532
Diffstat (limited to 'absl/time/internal/cctz/src/time_zone_impl.cc')
-rw-r--r-- | absl/time/internal/cctz/src/time_zone_impl.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/absl/time/internal/cctz/src/time_zone_impl.cc b/absl/time/internal/cctz/src/time_zone_impl.cc index aadbb77d..f34e3aec 100644 --- a/absl/time/internal/cctz/src/time_zone_impl.cc +++ b/absl/time/internal/cctz/src/time_zone_impl.cc @@ -99,13 +99,11 @@ void time_zone::Impl::ClearTimeZoneMapTestOnly() { } } -time_zone::Impl::Impl() : name_("UTC"), zone_(TimeZoneIf::UTC()) {} - time_zone::Impl::Impl(const std::string& name) - : name_(name), zone_(TimeZoneIf::Make(name_)) {} + : name_(name), zone_(TimeZoneIf::Load(name_)) {} const time_zone::Impl* time_zone::Impl::UTCImpl() { - static const Impl* utc_impl = new Impl; + static const Impl* utc_impl = new Impl("UTC"); // never fails return utc_impl; } |