You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/02/01 19:26:51 UTC

[incubator-trafficcontrol] branch master updated (6b38aee -> 8ac97aa)

This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git.


    from 6b38aee  fix authorization handling to use alerts and handle forbidden properly
     new a18f940  Date format for time parsing.  This fixes #1826
     new 8ac97aa  fix syntax error

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 traffic_stats/traffic_stats.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
dangogh@apache.org.

[incubator-trafficcontrol] 01/02: Date format for time parsing. This fixes #1826

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit a18f940dc500a68a288755d888c18d73becab2e5
Author: David Neuman <da...@gmail.com>
AuthorDate: Tue Jan 30 16:00:06 2018 -0700

    Date format for time parsing.  This fixes #1826
---
 traffic_stats/traffic_stats.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/traffic_stats/traffic_stats.go b/traffic_stats/traffic_stats.go
index 5a34ebf..cd5971c 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-05", lastSummaryTimeStr)
 		if err != nil {
-			errHndlr(err, ERROR)
+			log.Error("Error parsing lastSummaryTime: " + err.Error())
 		} else {
 			runningConfig.LastSummaryTime = lastSummaryTime
 		}

-- 
To stop receiving notification emails like this one, please contact
dangogh@apache.org.

[incubator-trafficcontrol] 02/02: fix syntax error

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git

commit 8ac97aa1c4dcc0e2ed939097762c4d6798fb85b7
Author: David Neuman <da...@gmail.com>
AuthorDate: Wed Jan 31 11:11:05 2018 -0700

    fix syntax error
---
 traffic_stats/traffic_stats.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/traffic_stats/traffic_stats.go b/traffic_stats/traffic_stats.go
index cd5971c..4010758 100644
--- a/traffic_stats/traffic_stats.go
+++ b/traffic_stats/traffic_stats.go
@@ -506,7 +506,7 @@ 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-05", lastSummaryTimeStr)
+		lastSummaryTime, err := time.Parse("2006-01-02 15:04:05-07", lastSummaryTimeStr)
 		if err != nil {
 			log.Error("Error parsing lastSummaryTime: " + err.Error())
 		} else {

-- 
To stop receiving notification emails like this one, please contact
dangogh@apache.org.