-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Timezone #5
Comments
I was able to finally get my st-902 pointed at my own server. I think I was out of service when I attempted it before -- can these settings be changed with a USB cable? I am seeing data in my logs. I switched from debug-socket back to h02 -- the messages format is the same
This data is not visible in the backend, so either the protocol is different, my settings are wrong, or perhaps I do not have the tracker ID entered correctly? |
On the backend my Device serial number is correctly set to |
Ok, the data is correct to protocol H02. Let me check if there are some additional column or value not parsed by default regular expression 👍🏿 |
Actually, those times are too late to be UTC... It's not 9:55 UTC on 2/26 yet.. |
Yes, you need to setup your device with UTC timezone: https://github.com/eusonlito/GPS-Tracker#set-the-time-zone-to-utc-to-delegate-the-time-adjustment-to-the-platform |
Also you can send a message (same text as SMS) from |
I was able to update my Tracker to UTC -- thank you so much for your help! I have my Vehicle set to my local timezone of America/New_York and I just started a new drive -- the time seems to be off by 1 hour, so maybe it is a Daylight savings issue? Either way, not a big deal for now. I will drive around for a few days and test everything out, and then maybe I can contribute a few updates too if you are open to it |
Can you check the server logs if device is reporting the correct UTC time?
Or in database tables Anyway I will do some tests with your same Timezone because I have found other users with a similae issue: https://stackoverflow.com/questions/74588944/getting-the-difference-in-time1-hour-for-daylight-saving-time-timezones-like-a |
When I check the DB, the UTC time is correct. I started my trip at 11am est today, which is 4pm UTC. Does your timezone selector take into account daylight savings time? In the Spring and Fall we adjust our clocks 1 hour, which can be a pain in PHP, but thankfully Carbon usually handles it EDIT: But you can also see that my End time is not correct. The UTC start/end correctly shows my trips was ~44 mins, but the non UTC values make the trip seem 12+ hours |
Do you have enabled automatic timezone in vehicle? Can you show the rows columns in your screenshot? In my case, with Europe/Madrid, PHP is handling fine the utc to timezone conversion with and without daylight savings... |
Yes, try to disable the automatic timezone inside vehicle. Anyway I testing timezone conversions using several timezones. |
Update the source before try disabling the automatic timezone because there was an bug with boolean casting on vehicle. |
The times are correct now after a pull and disabling autotimezone! |
No description provided.
The text was updated successfully, but these errors were encountered: