dangogh commented on a change in pull request #1827: This fixes an issue in
Traffic Stats with getting the last summary time
URL:
https://github.com/apache/incubator-trafficcontrol/pull/1827#discussion_r164948700
##########
File path: traffic_stats/traffic_stats.go
##########
@@ -506,9 +506,9 @@ func getToData(config StartupConfig, init bool, configChan
chan RunningConfig) {
if err != nil {
errHndlr(err, ERROR)
} else {
- lastSummaryTime, err := time.Parse("2006-01-02 15:04:05+00",
lastSummaryTimeStr)
+ lastSummaryTime, err := time.Parse("2006-01-02 15:04:05-05",
lastSummaryTimeStr)
Review comment:
shouldn't it be `-07` and not `-05`?
https://gobyexample.com/time-formatting-parsing
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services