|
|
| Author |
Message |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Wed Mar 14, 2007 7:23 pm Post subject: "Position Timestamp"this time is not conform to t |
|
|
now, the map have created. but the Position Timestamp
is no conform to my time zone. my computer's time is 8:21 AM
the map time is 00:21 AM. somebody knows how to correct.
thanks.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Thu Mar 15, 2007 2:58 am Post subject: Re: "Position Timestamp"this time is not conform |
|
|
| cfybyair wrote: | now, the map have created. but the Position Timestamp
is no conform to my time zone. my computer's time is 8:21 AM
the map time is 00:21 AM. somebody knows how to correct.
thanks. |
Can you tell me which time zone (zone name) you are in, which zone is configured on the OS, which operating system and which PHP version?
It's supposed to follow your timezone from the system settings...
|
|
| Back to top |
|
 |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Thu Mar 15, 2007 9:29 am Post subject: |
|
|
GMT+ Beijing,China,Hongkong
my system is win2003 time zone is GMT+ Beijing,China,Hongkong
cacti 0.86i
weathermap 0.82
php 5.1.6
my cacti graphs time is right.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Thu Mar 15, 2007 9:31 am Post subject: |
|
|
| cfybyair wrote: | GMT+ Beijing,China,Hongkong
my system is win2003 time zone is GMT+ Beijing,China,Hongkong
cacti 0.86i
weathermap 0.82
php 5.1.6
my cacti graphs time is right. |
Thanks - I'll do some experimenting! This is a new one...
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Thu Mar 15, 2007 7:44 pm Post subject: |
|
|
| cfybyair wrote: | GMT+ Beijing,China,Hongkong
my system is win2003 time zone is GMT+ Beijing,China,Hongkong
cacti 0.86i
weathermap 0.82
php 5.1.6
my cacti graphs time is right. |
I have two things you might like to try to help debugging this:
1. change the format in TIMEPOS to include a %z. So something like:
| Code: |
TIMEPOS 100 100 Created: %b %d %Y %H:%M:%S %Z
|
which will show what timezone PHP thinks it is.
2. In Weathermap.class.php, search for function DrawTimestamp and then change the line near the top from:
| Code: |
$datestring=strftime($this->stamptext, time());
|
to
| Code: |
$datestring=strftime($this->stamptext);
|
and try again.
I am lucky enough to live where they invented time , in GMT, so I don't see this problem, but I know that plenty of other people around the world use local times with no trouble, so there must be a special case here. It might be Windows - it seems that some of the PHP time functions behave differently on Windows.
Please could you let me know the outcome of those two changes?
|
|
| Back to top |
|
 |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Fri Mar 16, 2007 12:08 am Post subject: |
|
|
thanks very much.
when i try it .
I tell the result to you.
|
|
| Back to top |
|
 |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Fri Mar 16, 2007 1:54 am Post subject: |
|
|
i do it .
but the time have wrong also. and have some wrong code.
look at the picture.
| Description: |
|
| Filesize: |
94.9 KB |
| Viewed: |
2163 Time(s) |

|
Last edited by cfybyair on Fri Mar 16, 2007 2:09 am; edited 2 times in total |
|
| Back to top |
|
 |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Fri Mar 16, 2007 2:02 am Post subject: |
|
|
sorry, the picture have some Chinese.I forget.
my area time is "2007-03-16-14:46"
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Fri Mar 16, 2007 3:15 am Post subject: |
|
|
| cfybyair wrote: | sorry, the picture have some Chinese.I forget.
my area time is "2007-03-16-14:46" |
Sorry - one last try.. could you please try with %z (lower case) instead of %Z? I think this will show the short 3-letter code for your timezone. I think the mess at the end there is GD failing to support UTF-8. The short names are all regular letters, as far as I know.
I will have my shiny new PC (E6600! ) working this weekend, so I'll be able to try myself, too.
|
|
| Back to top |
|
 |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Fri Mar 16, 2007 4:50 am Post subject: |
|
|
so good E6600!!!!
somebody like it very much.so do i .
|
|
| Back to top |
|
 |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Fri Mar 16, 2007 5:09 am Post subject: |
|
|
this is my conf about Timepos
"TIMEPOS 525 40 Created: %b %d %Y %H:%M:%S %z"
the map time &the really time (system time,time zone) time different 8 ours.
the problems is about time zone. but the problem will come from php.
let me try .
|
|
| Back to top |
|
 |
cfybyair
Joined: 01 Sep 2006 Posts: 27
|
Posted: Fri Mar 16, 2007 5:24 am Post subject: |
|
|
i know what happen with my cacti/
PHP5>=5.1.0RC1
find the Module date.timezone
edit it cut ";"
date.timezone="your time zone"
some time zone code :
CET
CST6CDT
Cuba
EET
Egypt
Eire
EST
EST5EDT
Etc/GMT
Etc/GMT+0
Etc/GMT+1
Etc/GMT+10
Etc/GMT+11
Etc/GMT+12
Etc/GMT+2
Etc/GMT+3
Etc/GMT+4
Etc/GMT+5
Etc/GMT+6
Etc/GMT+7
Etc/GMT+8
Etc/GMT+9
Etc/GMT-0
Etc/GMT-1
Etc/GMT-10
Etc/GMT-11
Etc/GMT-12
Etc/GMT-13
Etc/GMT-14
Etc/GMT-2
Etc/GMT-3
Etc/GMT-4
Etc/GMT-5
Etc/GMT-6
Etc/GMT-7
Etc/GMT-8
Etc/GMT-9
Etc/GMT0
Etc/Greenwich
Etc/UCT
Etc/Universal
Etc/UTC
Etc/Zulu
Factory
GB
GB-Eire
GMT
GMT+0
GMT-0
GMT0
Greenwich
Hongkong
HST
Iceland
Iran
Israel
Jamaica
Japan
Kwajalein
Libya
MET
MST
MST7MDT
Navajo
NZ
NZ-CHAT
Poland
Portugal
PRC
PST8PDT
ROC
ROK
Singapore
Turkey
UCT
Universal
UTC
W-SU
WET
I am Chinese,so i in the China now.
so my PHP.INI :
date.timezone = "PRC"
the problem reslove.
thanks Howie.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2135 Location: United Kingdom
|
Posted: Fri Mar 16, 2007 5:29 am Post subject: |
|
|
| cfybyair wrote: | i know what happen with my cacti/
PHP5>=5.1.0RC1
find the Module date.timezone
edit it cut ";"
date.timezone="your time zone"
some time zone code :
I am Chinese,so i in the China now.
so my PHP.INI :
date.timezone = "PRC"
the problem reslove.
thanks Howie. |
It doesn't use system settings? Oh, that's bad.
Thanks for spending the time on it, too
|
|
| Back to top |
|
 |
|