plan-player-analytics / Plan

Player Analytics plugin for Minecraft Server platforms - View player activity of your server with ease. :calendar:
https://www.spigotmc.org/resources/plan-player-analytics.32536/
GNU Lesser General Public License v3.0
864 stars 169 forks source link

Show users in each time zone #1452

Open kakduman opened 4 years ago

kakduman commented 4 years ago

Is your feature request related to a problem? Please describe.

My server is currently hosted with Eastern Time and uses that for all announcements. I'm curious to see whether a different time zone is more popular on the server and whether we should switch to it.

I would like to be able to..

I'd like to be able to see a map similar to the geolocation map but for time zones. I'm not sure how difficult this might be to implement, though. A map is obviously not necessary; I mainly want to see the number of unique users from each time zone.

AuroraLS3 commented 4 years ago

Is the geolocation map somehow unfit for this purpose (to get the general idea anyway) - I would much rather avoid dealing with timezones in all ways possible https://www.youtube.com/watch?v=-5wpm-gesOY

kakduman commented 4 years ago

I never knew timezones could be so complicated! Unfortunately, I cannot use the geolocation map to determine the best timezone for my server since I'm mainly considering having the server time in Pacific or Central Time instead of Eastern Time, all three of which are primarily in the U.S.

A crude geographical map similar to the one here or here is what I'm looking for rather than something that incorporates Daylight Savings Time and calculates the user's time. A table which shows the time zones and makes an educated guess toward the unique players in each one would also be fine. The feature isn't too necessary and we can continue to use Eastern Time if necessary. I see how this could be near impossible to implement.

I'm not too experienced with coding, but it's possible that the GeoIP database includes a method to get the time zone of users based on this link. If those timezones could be compiled into a table that shows the number of each users in each time zone (or timezone offset based on the language the website uses), it'd be really helpful!

Thanks for all the help!

AuroraLS3 commented 4 years ago

The website you linked states GeoIP2 Precision web services except Country contain TimeZones, but Plan is using the Country database

kakduman commented 4 years ago

I see, would you please consider implementing a second GeoIP database that does contain timezones?

AuroraLS3 commented 4 years ago

Looks like GeoLite2 City database would also have timezone available. I'll take it to consideration.

AuroraLS3 commented 3 years ago

TODO