score:0

for this particular problem you can use a service, like freegeoip.net or geoplugin.net
for more info, please refer this page

what you have to do is send a request(via xhr or whatever you're using in the backend) along with the user's ip to their service as follows :

freegeoip.net/json/<user-ip> | geoplugin.net/json.gp?ip=<user-ip>

or

you can use date() object to retrieve the users current day, date, time and post it back to your server to update your app ..

edit

the problem with ip address is it's not reliable, what if the user is behind a vpn or any other anonymous proxy service like tor, so the ip address received is not very much of help to you. perhaps sending the users details(time and location) via setting a header in the request would be more reliable.


Related Query

More Query from same tag