Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis Fixes: Graphs now scale + render time in Myanmar/Yangon time zone #428

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

RoboticWater
Copy link
Collaborator

This should fix graphs going off the screen, and the time zones being based on local user time. Note that I've added moment-timezone to the package.json, so you'll need to npm i for this one.

@@ -13,14 +15,14 @@ module.exports = function renderHateSpeechReportGraph(id, data, range, descripti
d.value +
" Reports" +
"</div><div>" +
d3.timeFormat("%b. %d %H:00")(d.date).replace(/\s0/g, " ") +
moment(d.data.date).tz("Asia/Yangon").format('MMM. Do hh:mm:ss') +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have said this earlier but I think since the Myanmar project is over, do we still want to make this change? We can maybe just make this change on the Myanmar server and not aggie repo. Lmk if I am missing somthing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants