Benno Evers
2acf403bcd
Dont include ios.h unconditionally.
...
The include in tz.cpp was changed to only include the ios.h header
when compiling on apple platforms, as the documentation states that
only the four files date.h, tz.h, tz_private.h, and tz.cpp should be
required to use the time zone library.
Additionally, the ios.mm file was moved to src/ since it contains
C++ source code.
2018-01-24 20:24:10 -05:00
Xuesong Hu
6941691de4
implement current_zone() for iOS using native API from iOSUtils
2018-01-12 14:59:01 -05:00
Howard Hinnant
55289f0d73
Make tz_dir a function-local static
...
* This solves initialization order issues detailed
in https://github.com/HowardHinnant/date/issues/275
2018-01-05 19:26:44 -05:00
Joshua Jackson
0af7654764
Fix iOS build
2017-12-11 05:45:27 -06:00
Howard Hinnant
1eeb4cd652
Prepare for the new definition of IST
...
* Irish Standard Time has a -1h save in the winter instead
of a +1h save in the summer.
2017-12-08 13:08:40 -05:00
Peter Karlovsek
5653e9e3a9
Fixes CURLE_SSL_CACERT (60) when downloading tzdata2017c.tar.gz
2017-12-01 12:14:41 -05:00
Howard Hinnant
c2e139ef53
Replace realpath with readlink
...
* Appears to be more modern and Debian Stretch requires it.
2017-11-30 17:17:28 -05:00
Howard Hinnant
87ed7f83cf
Correct IANA data download URL
2017-11-27 12:44:57 -05:00
Darrell Wright
4614ebda4a
Update to accomidate change of iana url #241
2017-11-23 20:25:00 -05:00
Tullio Menga
f4b12ab023
Adjust HAS_CHRONO_ROUNDING macro for MSVC with v140_clang_c2 and LLVM-vs2014
2017-11-20 11:45:04 -05:00
Michael Maroszek
16439a8ce2
enhance tz_dir detection for buildroot with uclibc systems
...
* use /etc/TZ for timezone detection on buildroot with uclibc systems
2017-11-19 18:42:13 -05:00
Aaron Bishop
c9ef0a8f05
express reverse_bytes in an easy to optimize way
...
optimizes to single bswap instruction on gcc and clang
2017-11-19 17:52:17 -05:00
Tullio Menga
ec514101a6
minor patches to build on Windows with MSVC v140_clang_c2 and LLVM-vs2014
2017-11-15 07:20:07 -05:00
Howard Hinnant
2e213abb76
Silence clang static analyzer warnings
2017-10-03 12:45:09 -04:00
Howard Hinnant
3acb299f3f
Rename TZ_DB to tzdb
...
* Bring into alignment with proposal
* TZ_DB alias left behind for backwards compatibility
2017-09-30 14:48:25 -04:00
Howard Hinnant
22a229af91
On macOS tz_dir is now discoverable at run time
...
* Apple changed the location of their IANA database in High Sierra,
breaking current_zone(). Now on Apple the location of the IANA
database is searched for at run time.
2017-09-26 09:47:24 -04:00
tagunil
bff551b2a5
Convert Windows header file names to lower case
2017-09-23 19:55:56 -04:00
Howard Hinnant
9f6c8d8c10
Update include paths for new directory structure
2017-09-22 20:10:58 -04:00
Markus Werle
3c3ba68906
Proposal for an alternative directory structure
2017-09-22 20:03:16 -04:00