Changeset 784 in code for trunk/db_sqlite.go


Ignore:
Timestamp:
Feb 16, 2022, 1:45:09 PM (3 years ago)
Author:
contact
Message:

Introduce formatServerTime

It's too easy to forget to convert to UTC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/db_sqlite.go

    r781 r784  
    796796        args := []interface{}{
    797797                sql.Named("id", receipt.ID),
    798                 sql.Named("timestamp", receipt.Timestamp.UTC().Format(serverTimeLayout)),
     798                sql.Named("timestamp", formatServerTime(receipt.Timestamp)),
    799799                sql.Named("network", networkID),
    800800                sql.Named("target", receipt.Target),
Note: See TracChangeset for help on using the changeset viewer.