use stamp time with milliseconds

This commit is contained in:
c9s 2021-05-23 01:29:41 +08:00
parent fbe850b364
commit 956ef71a48

View File

@ -121,7 +121,7 @@ func (trade Trade) SlackAttachment() slack.Attachment {
{Title: "Liquidity", Value: liquidity, Short: true}, {Title: "Liquidity", Value: liquidity, Short: true},
{Title: "Order ID", Value: strconv.FormatUint(trade.OrderID, 10), Short: true}, {Title: "Order ID", Value: strconv.FormatUint(trade.OrderID, 10), Short: true},
}, },
Footer: util.Render("trade time {{ . }}", trade.Time.Time().Format(time.RFC822)), Footer: util.Render("trade time {{ . }}", trade.Time.Time().Format(time.StampMilli)),
} }
} }