csingley / ofxtools

Python OFX Library
Other
301 stars 68 forks source link

Handle negative fractional timezone offsets. #117

Closed stoklund closed 3 years ago

stoklund commented 3 years ago

Python's divmod function rounds towards negative infinity, so timezones with a fractional negative offset would be off by one.

Add a test using Newfoundland Standard Time which demonstrates this problem.

csingley commented 3 years ago

Good eye out!