Boost C++ Libraries: Ticket #2213: timezone base offset range to small https://svn.boost.org/trac10/ticket/2213 <p> Hi, </p> <p> 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 "<a class="missing wiki">Pacific/Kiritimati</a>" with offset +14. </p> <pre class="wiki">253 // base offset must be within range of -12 hours to +12 hours 254 if(base_utc_offset_ &lt; time_duration_type(-12,0,0) || 255 base_utc_offset_ &gt; time_duration_type(12,0,0)) 256 { 257 throw bad_offset(posix_time::to_simple_string(base_utc_offset_)); 258 } </pre><p> The base offset should within range -14 hours to +14 hours. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2213 Trac 1.4.3 Andrey Semashev Thu, 01 Oct 2009 11:57:09 GMT milestone changed https://svn.boost.org/trac10/ticket/2213#comment:1 https://svn.boost.org/trac10/ticket/2213#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">Boost 1.41.0</span> </li> </ul> <p> The exact valid range is from -12 to +14 hours. See here: <a class="ext-link" href="http://www.worldtimezone.com/utc/utc+1200.html"><span class="icon">​</span>http://www.worldtimezone.com/utc/utc+1200.html</a> </p> Ticket Andrey Semashev Thu, 01 Oct 2009 11:57:25 GMT owner changed https://svn.boost.org/trac10/ticket/2213#comment:2 https://svn.boost.org/trac10/ticket/2213#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">az_sw_dude</span> to <span class="trac-author">Andrey Semashev</span> </li> </ul> Ticket Andrey Semashev Thu, 01 Oct 2009 19:44:00 GMT <link>https://svn.boost.org/trac10/ticket/2213#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2213#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56505" title="Refs #2213. Fixed UTC zone offset boudaries.">[56505]</a>) Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2213" title="#2213: Bugs: timezone base offset range to small (closed: fixed)">#2213</a>. Fixed UTC zone offset boudaries. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sat, 03 Oct 2009 10:04:01 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2213#comment:4 https://svn.boost.org/trac10/ticket/2213#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56545" title="Fixes #1861, #2213 merged from trunk.">[56545]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1861" title="#1861: Patches: time_duration type can not be correctly written or read of the period ... (closed: fixed)">#1861</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2213" title="#2213: Bugs: timezone base offset range to small (closed: fixed)">#2213</a> merged from trunk. </p> Ticket