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

    r781 r784  
    446446
    447447        if _, ok := msg.Tags["time"]; !ok {
    448                 msg.Tags["time"] = irc.TagValue(time.Now().UTC().Format(serverTimeLayout))
     448                msg.Tags["time"] = irc.TagValue(formatServerTime(time.Now()))
    449449        }
    450450
Note: See TracChangeset for help on using the changeset viewer.