Ajax Chat Hour


Subject: 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.

Profile PM  
Subject: 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: [Download] [Hide] [Select]
//$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']));


instead of board_timezone it gets server_timezone :|


If any1 knows something bout it will help me alot.

Thx and sorry again for bumping.

Profile PM  
Subject: 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.

Subject: 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' +5, $row[$x]['shout_time'])); ??

If I solve this issue the problem will be solved.

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1468s (PHP: 12% SQL: 88%)
SQL queries: 10 - Debug Off - GZIP Enabled