storj/storagenode/storagenodedb
Jeff Wendling b9d8ddaad1
storagenode: remove datetime calls in favor of UTC (#2557)
* storagenode: remove datetime calls in favor of UTC

datetime only has second level granularity whereas string
comparisons don't. Since we're wiping everything anyway, it's
easier to just use UTC everywhere rather than migrate to
datetime calls.

* add utcdb to check that arguments are utc

* storagenodedb: add trivial tests to ensure calls work

This at least tests that all of the timestamps passed in are
in the UTC timezone.

* fix truncated comment and change migrations to be UTC
2019-07-15 13:38:08 -04:00
..
storagenodedbtest protocol: implement new piece signing and verification (#2525) 2019-07-11 16:51:40 -04:00
testdata storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
bandwidthdb_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
bandwidthdb.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
consoledb_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
consoledb.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
database.go Drop SN certifiates table from DB (#2498) 2019-07-09 17:33:45 -04:00
infodb_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
infodb.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
migrations_test.go storagenodedb: optimize index usage and queries (#2545) 2019-07-12 15:29:09 -04:00
orders_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
orders.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
pieceinfo_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
pieceinfo.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
usedserials_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
usedserials.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
utcdb_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
utcdb.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
vouchers_test.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00
vouchers.go storagenode: remove datetime calls in favor of UTC (#2557) 2019-07-15 13:38:08 -04:00