FormatInstant renders an instant for the viewer. JSON timestamps bypass it.
(t time.Time, layout string)
| 22 | |
| 23 | // FormatInstant renders an instant for the viewer. JSON timestamps bypass it. |
| 24 | func FormatInstant(t time.Time, layout string) string { |
| 25 | return t.In(DisplayLocation()).Format(layout) |
| 26 | } |