Closed TechnicJelle closed 1 year ago
Currently, the last played time format is hard-coded in as yyyy-MM-dd HH:mm:ss:
yyyy-MM-dd HH:mm:ss
Some JavaScript could probably transform the Unix time stamp of player.getLastPlayed() into the proper locale for each viewer of the map.
player.getLastPlayed()
You should remove the date formatting code that's currently there and just put the player.getLastPlayed() function directly in the HTML, like so:
Then I'm sure some JavaScripty way could be figured out to transform that properly. The js code should probably go into here: https://github.com/TechnicJelle/BlueMapOfflinePlayerMarkers/blob/main/src/main/resources/script.js
Currently, the last played time format is hard-coded in as![image](https://user-images.githubusercontent.com/22576047/212554064-ed45f3e6-48f6-4a8a-92af-84feda5922dc.png)
yyyy-MM-dd HH:mm:ss
:Some JavaScript could probably transform the Unix time stamp of
player.getLastPlayed()
into the proper locale for each viewer of the map.You should remove the date formatting code that's currently there and just put the
![image](https://user-images.githubusercontent.com/22576047/212554475-e4692a6c-6ea3-4805-81f8-91795db430df.png)
player.getLastPlayed()
function directly in the HTML, like so:Then I'm sure some JavaScripty way could be figured out to transform that properly. The js code should probably go into here: https://github.com/TechnicJelle/BlueMapOfflinePlayerMarkers/blob/main/src/main/resources/script.js