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 2016/12/16 21:16:05 UTC

[08/50] incubator-trafficcontrol git commit: fixed mday to remove -1 calc

fixed mday to remove -1 calc


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/19e7d85b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/19e7d85b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/19e7d85b

Branch: refs/heads/postgres
Commit: 19e7d85bd6d0a2100474036599f21f5b02e10604
Parents: 6846269
Author: Dewayne Richardson <de...@apache.org>
Authored: Thu Dec 1 11:33:11 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Fri Dec 16 14:09:45 2016 -0700

----------------------------------------------------------------------
 traffic_ops/app/t/api/1.2/stats_summary.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/19e7d85b/traffic_ops/app/t/api/1.2/stats_summary.t
----------------------------------------------------------------------
diff --git a/traffic_ops/app/t/api/1.2/stats_summary.t b/traffic_ops/app/t/api/1.2/stats_summary.t
index fd3c154..a007091 100644
--- a/traffic_ops/app/t/api/1.2/stats_summary.t
+++ b/traffic_ops/app/t/api/1.2/stats_summary.t
@@ -52,7 +52,7 @@ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
 my $summary_time = sprintf ( "%04d-%02d-%02d %02d:%02d:%02d",
                                    $year+1900,$mon+1,$mday,$hour,$min,$sec);
 my $stat_date = sprintf ( "%04d-%02d-%02d",
-                                   $year+1900,$mon+1,$mday-1);
+                                   $year+1900,$mon+1,$mday);
 
 #login
 ok $t->post_ok( '/api/1.1/user/login', json => { u => Test::TestHelper::ADMIN_USER, p => Test::TestHelper::ADMIN_USER_PASSWORD } )->status_is(200),