Commit Graph

11 Commits

Author SHA1 Message Date
Toby Zerner
88228df6f2 Clean up some variable/method names 2017-12-19 08:57:55 +10:30
Toby Zerner
d56b792a9d I think we're finally good with the timezone stuff now?
MySQL's UNIX_TIMESTAMP function interprets the date using MySQL's
configured timezone, which we don't want (may be misconfigured etc).
Instead, now we do the conversion to a timestamp on the PHP side. Then
JavaScript is given the offset between UTC and the configure timezone
so it can work out how to display the data.
2017-12-11 22:42:51 +10:30
Toby Zerner
6857d32d22 Add "today" period with hourly breakdown, and fix timezone issues
This fix ensures that before aggregating daily/hourly statistics, dates
are converted into the local timezone ("flarum-statistics.timezone" in
the settings table).
2017-12-11 19:01:38 +10:30
Toby Zerner
8860def12e Only show this period's value in tooltip 2017-12-11 18:53:47 +10:30
Toby Zerner
b65ad8a5ce Only update chart values if needed 2017-12-11 18:52:54 +10:30
Toby Zerner
3f1f92b565 Show a tick next to the selected period 2017-12-11 18:48:32 +10:30
Toby Zerner
ae063b52e8 Fix date range sometimes leaving out today 2017-12-11 07:52:48 +10:30
Toby Zerner
898469e398 Display tweaks 2017-12-11 07:52:05 +10:30
Toby Zerner
410dd2c679 Set default period to last 7 days 2017-12-10 21:26:54 +10:30
Toby Zerner
1780448e70 Abbreviate numbers 2017-12-10 21:26:42 +10:30
Toby Zerner
a595d9e846 Initial commit 2017-12-10 21:11:13 +10:30