From a0d328c53d4e1794a7b5ce035b26a32839b98c85 Mon Sep 17 00:00:00 2001 From: Harshal Pradhan Date: Tue, 12 Jan 2016 02:52:39 +0530 Subject: [PATCH] Fix problems with times in timezone offsets which are not multiples of an hour. Truncate does something we do not expect in the case of non integer hour timezone offset. Its basically rounding to hour from t = 0. Which in this case is Unix t=0 ... which means it rounds to the half hour. --- spec.go | 2 +- spec_test.go | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/spec.go b/spec.go index afa5ac86..2b541269 100644 --- a/spec.go +++ b/spec.go @@ -108,7 +108,7 @@ WRAP: for 1<