Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2005, 10:06 PM
Parabolart's Avatar
Parabolart Parabolart is offline
 
Join Date: Aug 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Time problem.

Ok here is my problem.. It's concerning the PluhNews 1.5 mod.. which i changed to work with vbulletin 3. I'm running vb 3.0.3 and i made the script fetch only the title, date posted, comments number, rating, and last poster form 'thread'.

My problem is simple... this is what i have in pluhnews.php to turn the dateline into time:
PHP Code:
$dateposted = date("j.m.y g:ia",$dateline); 
The date that appears there differs from the date on the forum's post.. for some people its 1 hour off, for some 2. I think the reason is that it doesn't change the GMT or w/e. I'm not an expert at php.. i'm actually a beginner. I've tried including

./includes/functions.php

and changing

PHP Code:
$dateposted = date("j.m.y g:ia",$dateline); 
to
PHP Code:
$dateposted = vbdate("j.m.y g:ia",$dateline, false, false); 
and ect..
but the time is still the same.. Can anyone help me?
Reply With Quote
  #2  
Old 01-16-2005, 04:16 PM
Parabolart's Avatar
Parabolart Parabolart is offline
 
Join Date: Aug 2003
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:50 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.