Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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.
 



 
KaTHoOSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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.
 



 
KaTHoOSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Ajax Chat Hour 
 
Thx Luca !
but is not the format...

Now the problem 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.
 



 
KaTHoOSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron