Marc Onrust
Forum Replies Created
-
Forum: Plugins
In reply to: [Trackserver] Date / time wrong formatMy PHP skills are close non-existent, unfortunately 🙁
I can read and, up to a certain level, understand what the code means but that’s about it.
Can you let me know what I need to do, i.e. which code to add in which file and how to get the ‘output’?
EDIT:
I figured I had to enter the code as follows:
$this -> osmand_terminate($_GET[“timestamp”], round( (int) urldecode( $_GET[“timestamp”] ) / 1000 ), $ts);Now, when I open the url in a webbrowser I am getting output: 2147484
Which is, converted to humanly readable time, exactly the timestamp I am seeing in the track data.Forum: Plugins
In reply to: [Trackserver] Date / time wrong formatHi Martijn, I commented it out with //
Start- and end are now both 1970-01-25 20:31:24
Forum: Plugins
In reply to: [Trackserver] Date / time wrong formatOK, I added the following line to php5.ini (hosted with Godaddy) and restarted ‘web processes’:
date.timezone = “Europe/Amsterdam”The result is a change in start- and end times, but unfortunately they’re still in incorrect: 1970-01-25 21:31:24
Forum: Plugins
In reply to: [Trackserver] No markersHi Martijn, possibly this issue is related to the other issue regarding wrong date. Let’s see if we get markers as soon as the date issue is fixed. If not, we’ll pick this one up.
Nevertheless, the url for the tracker page is http://www.vomac-nl.com/2015/12/06/live-gps/
Forum: Plugins
In reply to: [Trackserver] Date / time wrong formatHi Martijn,
Yes, I have the latest version of WordPress , Trackserver and Osmand.
My timezone is correctly configured in WordPress. Not sure about php, I must check that with Godaddy.
From the logfiles I read the following entry (I replaced username and key):
‘[13/Dec/2015:00:00:37 -0700] “GET http://www.vomac-nl.com/osmand/??lat=51.586636&lon=4.9822874×tamp=1449990037252&altitude=60.0&speed=0.0&bearing=0.0&username=xxx&key=xxxx HTTP/1.1” 200 18 “-” “Dalvik/1.6.0 (Linux; U; Android 4.4.4; Vodafone Smart 4 turbo Build/KTU84P)” ‘
The given timestamp is actually for a date in December 2015, so actual and not 1970.
I would be happy to send you my login details so you can have a look for yourself.
Forum: Plugins
In reply to: [Trackserver] Date / time wrong formatTried with a different phone and Osmand, but it’s giving me the same issue.
Start = End = 1970-01-25 13:31:24
The track is shown correctly, but unfortunately the dates and times are wrong.