dangogh closed 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
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/traffic_stats/traffic_stats.go b/traffic_stats/traffic_stats.go
index 5a34ebf379..4010758d27 100644
--- a/traffic_stats/traffic_stats.go
+++ b/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-07",
lastSummaryTimeStr)
if err != nil {
- errHndlr(err, ERROR)
+ log.Error("Error parsing lastSummaryTime: " +
err.Error())
} else {
runningConfig.LastSummaryTime = lastSummaryTime
}
----------------------------------------------------------------
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