https://www.icyphoenix.com/viewtopic.php?f=35&t=3171
-----------------------------------
KaTHoO
Mon 26 Nov, 2007 10:35

Ajax Chat Hour
-----------------------------------
Hi there !!

In my Ajax chat box the diplayed hour in not the correct one, let's say that the difference between the diplayed1 and the real1 is 8 hrs.
I think is because the block take the hour from the hosting server instead of the forum configuracion.

Can some1 help me with this problem ?


Thx in advance.


-----------------------------------
KaTHoO
Tue 27 Nov, 2007 10:03

Re: Ajax Chat Hour
-----------------------------------
Sry 4 the double post....

It seems that the iTime gets the hour from the Server, but I'm not sure... I'll have to check the scritps and see if I can change to get the hour from the icy configuration.

[code linenumbers=false]
//$time = utf8_encode(create_date($board_config['default_dateformat'], $row[$x]['shout_time'], $board_config['board_timezone']));
			$time = utf8_encode(date('Y/m/d - H.i.s', $row[$x]['shout_time']));
[/code]

instead of [i]board_timezone[/i] it gets server_timezone  :| 


If any1 knows something bout it will help me alot.

Thx and sorry again for bumping.


-----------------------------------
Mighty Gorgon
Wed 28 Nov, 2007 11:08

Re: Ajax Chat Hour
-----------------------------------
As you see the first line is commented... so you have to manually adjust for your desired date format.

I have hardcoded it because I was getting errors with other time formats.


-----------------------------------
KaTHoO
Wed 28 Nov, 2007 13:59

Re: Ajax Chat Hour
-----------------------------------
Thx Luca !
but is not the format...

Now the problem :D How I add 5 hrs ?

$time = utf8_encode(date('Y/m/d - H.i.s' [color=#ff0019]+5[/color], $row[$x]['shout_time'])); ??

If I solve this issue the problem will be solved.


