[Boost-bugs] [Boost C++ Libraries] #2213: timezone base offset range to small

Subject: [Boost-bugs] [Boost C++ Libraries] #2213: timezone base offset range to small
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-18 11:53:30


#2213: timezone base offset range to small
----------------------------------+-----------------------------------------
 Reporter: nuck-nuck_at_[hidden] | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: date_time
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: timezone base offset |
----------------------------------+-----------------------------------------
 Hi,

 posix_time_zone.hpp checks in line 254 and 255 the base offset between -12
 and 12 hours. In the data file date_time_zonespec.csv are timezones like
 "Pacific/Kiritimati" with offset +14.


 {{{
 253 // base offset must be within range of -12 hours to +12
 hours
 254 if(base_utc_offset_ < time_duration_type(-12,0,0) ||
 255 base_utc_offset_ > time_duration_type(12,0,0))
 256 {
 257 throw
 bad_offset(posix_time::to_simple_string(base_utc_offset_));
 258 }

 }}}

 The base offset should within range -14 hours to +14 hours.

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2213>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC