Modify

Ticket #2213 (closed Bugs: fixed)

Opened 6 years ago

Last modified 5 years ago

timezone base offset range to small

Reported by: nuck-nuck@… Owned by: andysem
Milestone: Boost 1.41.0 Component: date_time
Version: Boost 1.36.0 Severity: Problem
Keywords: timezone base offset Cc:

Description

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.

Attachments

Change History

comment:1 Changed 5 years ago by andysem

  • Milestone changed from Boost 1.36.0 to Boost 1.41.0

The exact valid range is from -12 to +14 hours. See here:  http://www.worldtimezone.com/utc/utc+1200.html

comment:2 Changed 5 years ago by andysem

  • Owner changed from az_sw_dude to andysem

comment:3 Changed 5 years ago by andysem

(In [56505]) Refs #2213. Fixed UTC zone offset boudaries.

comment:4 Changed 5 years ago by andysem

  • Status changed from new to closed
  • Resolution set to fixed

(In [56545]) Fixes #1861, #2213 merged from trunk.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.