vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.96k stars 725 forks source link

wrong gsm date/time? #228

Open fgrs opened 5 years ago

fgrs commented 5 years ago

I was expecting this function getGSMDateTime(DATE_DATE) to return the actual date from the network instead I get 04/01/01, am I missing something here?

NewStorm commented 5 years ago

Having the same error and it looks like a bug With SIM800l you can get the correct time (UTC) and date with getGsmLocation()

vshymanskyy commented 5 years ago

Probably related to #188

eabase commented 5 years ago

@fgrs If you know what AT command you are using, I will probably end up telling you that this doesn't work as you think it should. You most likely need to have internet connection setup before you can expect to get any time/date stuff, unless you're in the US on CDMA connection...