lib: API and Data break: fixed Timezone record class
commit5010f387dc28a08cd913935ef9fb5d01d88d3284
authorChris Frey <cdfrey@foursquare.net>
Tue, 31 Jan 2012 06:49:23 +0000 (31 01:49 -0500)
committerChris Frey <cdfrey@foursquare.net>
Tue, 31 Jan 2012 07:41:53 +0000 (31 02:41 -0500)
tree820a1b3602785798cd67ecffa354d010fcf95a68
parent205a101d122b7d7aa015622f46fb9f07127ce755
lib: API and Data break: fixed Timezone record class

The Timezone record class got too complex, trying to split a simple
minute offset into 3 different variables.  The class's code then made
different assumptions on the OffsetFraction member variable, causing
incorrect data to be displayed.

This commit simplifies the Timezone class, and adds some helper functions
to split the offset into multiple units if necessary.  It also adds some
much-needed documentation on the meaning of the variables.

Where the meaning changed, the variable names changed as well, to cause
a compilation error for applications that rely on this code.
src/r_timezone.cc
src/r_timezone.h
src/s11n-boost.h