fix: narrow uses insufficient input char type

The current implementation uses std::stringstream::narrow(char) with its 'char' input parameter type to transform 'charT' chars taken from a std::basic_istream<charT> into 'char' chars. This is most likely not what is intended if 'charT' is wider than 'char'. Fix this by using std::basic_istream<charT>::narrow(charT) instead.

Signed-off-by: Daniela Engert <dani@ngrt.de>
Fix for utc_to_local year 2038 problem

Even if std::time_t is 64-bit, multiplying the 32-bit value dd.days() by 86400 result in a negative value for dates after 2038. This results in c_time::localtime(&t2, &tms) throwing an exception.

Adding casts to std::time_t fixes this problem.
Merge pull request #1 from DanielaE/fix/bad_narrow

fix: narrow uses insufficient input char type
Merge pull request #4 from MarcelRaad/patch-1

Fix for utc_to_local year 2038 problem
Suppress msvc level-4 warnings.

Even when compiled at warning level 4 (i.e. all), project policies may require compilations without warnings issued.

Signed-off-by: Daniela Engert <dani@ngrt.de>
Fixed locally defined but not unused typedef warnings on GCC.

Passes tests.
Merge pull request #2 from DanielaE/feature/qoi-warnings

Suppress msvc level-4 warnings.
Added test for bug #5041 - %y in single digit year

Ahmed Charles: Tests pass with MSVC 2013.
Clarified the docs and examples for previous_weekday and next_weekday. Refs #5753.
Merge branch 'develop' of github.com:boostorg/date_time into develop
#else/#endif comments are updated accordingly to the used condition

Fixed incorrect comments for the condition at the next line:
#if defined(BOOST_DATE_TIME_HAS_REENTRANT_STD_FUNCTIONS)
There were later:
#else // BOOST_HAS_THREADS
#endif // BOOST_HAS_THREADS
It prevented a proper fast undesrstanding of the source.
Merge pull request #8 from mingulov/patch-1_1

#else/#endif comments are updated accordingly to the used condition
Add some automatic checks to testc_local_adjustor.

Not full tests, but enough to catch the error fixed in
344c0dceb44ee0d0767ff041c2e627fdc9e45bab.
remove unused variable in tz_db_base::load_from_file()
Merge pull request #10 from maksqwe/unused_fix

Remove unused locale variable
Merge pull request #9 from danieljames/timezone-test

Add some automatic checks to testc_local_adjustor.

Seems okay to me, thanks!
Merge branch 'master' into develop
Merge branch 'develop'