Date and time changing
Moderator: Martin
Date and time changing
Every time I power on my cellphone, after get discharged, the date and time get misconfigured. I want to fix this with Automagic getting the data from Google. But I don't know how to filter what I need from the HTML code. Can you help me?
Re: Date and time changing
I can't help you with the actual question but do you have automatic updating of time set to off? That might be the cause the date gets wrong.
Re: Date and time changing
I checked and it's turned on. I think it does not work because I have a custom ROM.
Re: Date and time changing
Automatic date and time should definitely work with any rom if u have a network connection.
If you insist on retrieving it from the Web there are a few free apis you could try
Ex:
https://timezonedb.com/references/get-time-zone
You need to register for a free account and then make a http Web request with the parameters needed.
If you wish to extract it from the text of a website you would need to use regular expressions.
If you insist on retrieving it from the Web there are a few free apis you could try
Ex:
https://timezonedb.com/references/get-time-zone
You need to register for a free account and then make a http Web request with the parameters needed.
If you wish to extract it from the text of a website you would need to use regular expressions.
Re: Date and time changing
Thanks for your answer. It's very useful to me but the database returns the time and date in unix format. ¿How can I convert it to the standard format?
Re: Date and time changing
I have tried but I can't transform Unix to UTC. I'm a beginner at this so it is very complicated to me. I either don't know how can I use the action "Set System Setting" to change the date and time. Anyway, thank you for your help.