jenkins-bot has submitted this change and it was merged.
Change subject: Use UTC to figure out last point on USD/sec graph
......................................................................
Use UTC to figure out last point on USD/sec graph
Was using local time before, ignoring last 7-8 hours of data.
Change-Id: I9e55a9d1b47a17246a43b9ccb21ad3ad130c669a
---
M src/components/boards/bigEnglish/bigEnglishBoard.js
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Ssmith: Looks good to me, approved
jenkins-bot: Verified
diff --git a/src/components/boards/bigEnglish/bigEnglishBoard.js
b/src/components/boards/bigEnglish/bigEnglishBoard.js
index 0204921..5209139 100644
--- a/src/components/boards/bigEnglish/bigEnglishBoard.js
+++ b/src/components/boards/bigEnglish/bigEnglishBoard.js
@@ -54,8 +54,8 @@
currentDate = new Date();
currentDate.setTime( timestamp );
self.displayDate( moment( currentDate ).format(
timeFormat ) );
- self.lastDataPoint.day = currentDate.getDate();
- self.lastDataPoint.hour = currentDate.getHours();
+ self.lastDataPoint.day = currentDate.getUTCDate();
+ self.lastDataPoint.hour = currentDate.getUTCHours();
for (var d = 1; d < 32; d++) {
self.dailyDataArray[d] = 0;
--
To view, visit https://gerrit.wikimedia.org/r/179017
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9e55a9d1b47a17246a43b9ccb21ad3ad130c669a
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/dash
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Ssmith <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits