Date and time changing

General discussions about Automagic and automation in general

Moderator: Martin

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Date and time changing

Post by ariloc » 22 Aug 2016 10:01

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?

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Date and time changing

Post by MURTUMA » 22 Aug 2016 10:05

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.

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: Date and time changing

Post by ariloc » 22 Aug 2016 16:34

I checked and it's turned on. I think it does not work because I have a custom ROM.

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: Date and time changing

Post by ariloc » 24 Aug 2016 09:55

Someone knows how do it?

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Date and time changing

Post by bogdyro » 25 Aug 2016 12:56

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.

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: Date and time changing

Post by ariloc » 02 Sep 2016 12:37

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?


ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: Date and time changing

Post by ariloc » 02 Sep 2016 15:55

Thank you!

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: Date and time changing

Post by ariloc » 05 Sep 2016 00:35

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.


Post Reply