RandomSec/main/tests
Tom Morris 55edae2b7b
Fix ToDate test failure & inefficiency - fixes #3026 (#3027)
* Fix ToDate test failure - fixes #3026

Instead of computing offset from UTC at current
point in time, use the offset from the parsed
date so that we're not affected by crossing
a daylight savings time boundary.

* Fix date parsing with locale as first format string

Also refactors for simpicity, restore some dropped tests,
and restores previous behavior of considering a bad
format string an error instead of silently ignoring it.

It does NOT address another issue which was introduced
in May 2018 of treating date/times without timzone
information as UTC instead of local.

* Restore error checking and messages

* Save & restore default timezone for tests

Also add some ToDos for places where LocalDate is being misused.
2020-08-09 13:53:43 +02:00
..
client/src Correcting typo that was breaking one UI test 2013-12-17 01:40:45 -03:00
data Refactor importer APIs - Fixes #2963 (#2978) 2020-07-23 18:36:14 +02:00
server Fix ToDate test failure & inefficiency - fixes #3026 (#3027) 2020-08-09 13:53:43 +02:00