mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add test for RFC3339 time format fixes #257
This commit is contained in:
committed by
Dan Christian Bogos
parent
60fbbc254d
commit
48d7c320ca
@@ -311,6 +311,12 @@ func TestParseTimeDetectLayout(t *testing.T) {
|
||||
t.Errorf("Expecting: %v, received: %v", expected, date)
|
||||
}
|
||||
|
||||
date, err = ParseTimeDetectLayout("2014-11-25T00:00:00+01:00", "")
|
||||
expected = time.Date(2014, 11, 24, 23, 0, 0, 0, time.UTC)
|
||||
if err != nil || !date.UTC().Equal(expected.UTC()) {
|
||||
t.Errorf("Expecting: %v, received: %v", expected.UTC(), date.UTC())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestRoundDuration(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user