sixem / ivfi-php

IVFi is a directory indexer that aims to make it easy to browse and explore web-accessible directories.
https://git.five.sh/ivfi/
Other
108 stars 18 forks source link

Detect Timezone of user #5

Closed camjac251 closed 4 years ago

camjac251 commented 4 years ago

This is a small thing but I can't figure it out myself. I am modifying strftime but notice that by default the timezone is set to UTC in my case.

Would it be possible to set the timezone of the script to the user's IP address through geoip? Or through javascript? https://stackoverflow.com/questions/39567799/how-do-i-find-user-timezone-in-php https://momentjs.com/timezone/

sixem commented 4 years ago

At the moment the script will use whatever timezone your server has set.

But yeah, i think it should be possible to update this on page load to the timezone of the user, using Javascript. I'll look into it soon.