Page 1 of 2

Date and time changing

Posted: 22 Aug 2016 10:01
by ariloc
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

Posted: 22 Aug 2016 10:05
by MURTUMA
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

Posted: 22 Aug 2016 16:34
by ariloc
I checked and it's turned on. I think it does not work because I have a custom ROM.

Re: Date and time changing

Posted: 24 Aug 2016 09:55
by ariloc
Someone knows how do it?

Re: Date and time changing

Posted: 25 Aug 2016 12:56
by bogdyro
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.

Re: Date and time changing

Posted: 02 Sep 2016 12:37
by ariloc
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

Posted: 02 Sep 2016 13:39
by MURTUMA

Re: Date and time changing

Posted: 02 Sep 2016 15:55
by ariloc
Thank you!

Re: Date and time changing

Posted: 05 Sep 2016 00:35
by ariloc
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.

Re: Date and time changing

Posted: 19 Sep 2016 17:05
by NomadTech