Changeset 784 in code for trunk/bridge.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/bridge.go

    r781 r784  
    2828                        timestampStr := "*"
    2929                        if r != nil {
    30                                 timestampStr = fmt.Sprintf("timestamp=%s", r.Timestamp.UTC().Format(serverTimeLayout))
     30                                timestampStr = fmt.Sprintf("timestamp=%s", formatServerTime(r.Timestamp))
    3131                        }
    3232                        dc.SendMessage(&irc.Message{
Note: See TracChangeset for help on using the changeset viewer.