storj/satellite
Jeff Wendling 6352d46100 satellite/satellitedb: do better ::date conversions
There is a subtle problem when one does a cast with `::date`. Observe:

    teststorj=# set timezone = 'US/Eastern';
    SET
    teststorj=# select (timestamp with time zone '2020-02-01 00:00:00+00')::date;
        date
    ------------
     2020-01-31
    (1 row)

    teststorj=# set timezone = 'UTC';
    SET
    teststorj=# select (timestamp with time zone '2020-02-01 00:00:00+00')::date;
        date
    ------------
     2020-02-01
    (1 row)

In order to correctly determine the date a timestamp is in, one has to
explicitly pick the time zone that the date truncation should use
otherwise postgres will use whatever setting the client has. These
tests were failing for me locally, because I run my postgres in
the US/Eastern time zone to try to tickle these bugs out. So it
should be `(x at time zone 'UTC')::date` instead of just `x::date`.

Change-Id: I4e9e32d4b53abc6165a4d0474f4702f8b9f801c7
2020-05-13 15:58:07 +00:00
..
accounting satellite/accounting: separate usage and bandwidth limit (#3878) 2020-05-12 15:01:15 +02:00
admin satellite/admin: add API endpoint for adding projects 2020-05-12 14:55:41 +00:00
attribution all: remove old uuid 2020-04-02 19:30:36 +03:00
audit private/testplanet: add StopNodeAndUpdate 2020-05-08 13:02:19 +00:00
compensation satellite/compensation: add offline status tracking 2020-04-28 19:35:59 +00:00
console satellite/accounting: separate usage and bandwidth limit (#3878) 2020-05-12 15:01:15 +02:00
contact satellite/contact: add timeout to PingBack method 2020-04-04 18:26:30 +00:00
dbcleanup satellite: remove some unnecessary UTC() calls 2020-03-13 13:49:44 +00:00
downtime satellite/downtime: add concurrency to downtime estimation 2020-04-14 14:39:13 +00:00
gc all: fix comments about grpc 2020-05-11 13:05:34 +03:00
gracefulexit all: fix comments about grpc 2020-05-11 13:05:34 +03:00
heldamount storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
inspector all: simplify uuid usage 2020-04-02 13:45:19 +00:00
mailservice all: use monkit v3 2020-02-05 23:53:17 +00:00
marketingweb all: separate err check for http 2020-04-16 18:50:24 +03:00
metainfo satellite/metainfo: Add test to verify payment report for attributed bucket 2020-05-13 17:22:04 +03:00
metrics all: don't depend on gogo/proto directly 2020-04-08 17:32:15 +00:00
nodestats storagenode/reputation: unknown_audit_reputation_alpha and beta added to db, and reputation endpoint 2020-05-05 15:48:04 +00:00
orders all: remove drpc wrappers 2020-05-11 08:20:34 +03:00
overlay all: fix comments about grpc 2020-05-11 13:05:34 +03:00
payments satellite: Change Default Project Limits and minimum STORJ Payment (#3877) 2020-05-12 14:18:58 +03:00
referrals satellite: add Go test version of satellite-config-lock tests 2020-05-13 08:14:24 +00:00
repair all: fix comments about grpc 2020-05-11 13:05:34 +03:00
rewards all: simplify uuid usage 2020-04-02 13:45:19 +00:00
satellitedb satellite/satellitedb: do better ::date conversions 2020-05-13 15:58:07 +00:00
vouchers bump storj.io/common to latest 2020-03-25 09:08:40 -04:00
admin.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00
api.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00
config-lock_test.go satellite: add Go test version of satellite-config-lock tests 2020-05-13 08:14:24 +00:00
core.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00
gc.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00
peer.go all: rename CreateTables to MigrateToLatest 2020-04-30 07:21:17 +00:00
repairer.go Add logging listener for retrieving and setting log levels 2020-05-12 16:38:06 -04:00