Wrong time from Emoncms

Hi,

I am sending data via API-interface  (GET http://.......) to emoncms.

Every telegram is answered by:

HTTP/1.1 200 OK
Date: Tue, 12 Aug 2014 18:15:19 GMT
Server: Apache/2.4.9 (Win64) PHP/5.5.12
X-Powered-By: PHP/5.5.12
Content-Length: 2
Connection: close
Content-Type: application/json

But the time coming back from emoncms is wrong. There is a difference from 2 hours.

The computer, emoncms is running on, has the right system time.
Is there some different possibility to adjust time-zone??

Olivier's picture

Re: Wrong time from Emoncms

You should have a look and update the PHP timezone. There is an explanation about this on the Emoncms wiki.

 

Edit: link addition http://emoncms.org/site/docs/installlinux in the last chapter "Configure PHP Timezone"

brutzler's picture

Re: Wrong time from Emoncms

OK this is already in my php.ini:

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/Paris

Think this is ok for me (Germany)

I have seen, that I get back a GMT-Time. Knowing, that there are 2 hours difference between, the time is basicly right. But looking at the GMT-timestamp it's always a little bit confusing. 

 

Olivier's picture

Re: Wrong time from Emoncms

You are right the PHP timezone seems to be correct. But I read again your first message. You have 2 hours of difference from GMT and by your location your are at GMT+2. It seems to be ok!

 

In France, I use this Excel formula to convert the timestamp:

=((((cellvalue/1000)/60)/60)/24)+DATE(1970;1;1)+(2/24)

With this formula I get the right time. So it should be the same for you.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.