View Full Version : Calendar problem
January 9th, 2007, 01:34 AM
I'm using version 5.62 and notice that there is problem with my calendar.
When I click on a particular date such as Monday, it show both photos uploaded on Monday and the prior date, Sunday.
Does anyone else has the same problem ?
I will give link to my gallery if requested.
January 9th, 2007, 01:32 PM
You have an example I dont see this behavior at all on testing.
Have you tried reuploading all your core PHP files?
January 9th, 2007, 11:11 PM
I will try to reupload all my core files later but you can see it on the link above.
January 10th, 2007, 06:19 AM
Does anyone else has the same problem ?
My calendar changes days before midnight.. I don't know if that is involved in your problem. It means at 11:15pm it will be claiming the uploads are being made tomorrow etc.
My setup is the latest PP and the latest VB, and everything works perfectly with correct times everywhere but the calendar.
I think the reason for the problem I see is a simple one, the template for the calendar seems to use the server date via a getdate() command.
Our server is elsewhere in the World and does not run on the same time zone as our local time. Both VB and PP have settings we keep set at -1hr to correct that...but the calendar is going straight to the server for its time it seems....so the day is wrong after 11pm for us.. in areas with 5 hour differences this could happen at 7pm etc. etc.
This must I guess affect everyone whose server is in a different timezone, which seems pretty common.
If anyone has a solution I'd love to hear of it. I have tried playing with the getdate() instruction in the vb3 template etc but have not yet found a variation that takes it back 1 hour and corrects the date as seems needed.
January 10th, 2007, 09:22 AM
The date function on the calendar will only pull photos for that day now depending on your server time and php's getdate function
elseif ( !empty($date) )
$thisdate = getdate($date);
$thismonth = $thisdate['mon'];
$thisyear = $thisdate['year'];
$thisday = $thisdate['mday'];
$lowdate = mktime(0, 0, 0, $thismonth, $thisday, $thisyear);
$highdate = mktime(0, 0, 0, $thismonth, $thisday+1, $thisyear);
$datecheck = "AND date >= $lowdate AND date < $highdate";
Now as far as showing dates correctly in Photopost with VB you must need to set Photopost's GMT setting to opposite of your servers offset like so. My server is in mountain time USA which is -7 from GMT so to get times to show like vb format in Photopost in my GMT setting in admin I put a 7 in there to bring it back to 7. That should then display times correct
January 10th, 2007, 10:13 PM
Thank you Chuck and Steve. I've adjusted the GMT time in Admin panel and now it works.
January 30th, 2007, 10:19 PM
I have the same problem as Steve UK
My server is in the US. I have a phpbb2 forum and it's time zone is set at +11. In photopost the GMT is set at +6 and this displays the correct time when making a test comment post.
The date today is January 31 but the calendar says that it's January 30.
January 31st, 2007, 11:54 AM
There should be no need to set GMT to anything with phpbb2 since users timezones are set from server time. GMT is only used in forums such as Invisionboard and Vbulletin where they code time from GMT
March 5th, 2007, 11:11 PM
Sorry to bother you guys. Here I am facing the same problem my calendar is in back date because my server is in USA and I am running photopost pro in Japan. How to fix it? I have checked all over but couldn’t found. It is 13:00 March 6, 2007 in Japan but calendar show March 5, 2007. Any suggestion please!!
March 6th, 2007, 09:15 AM
Well a little more background on your site would help like are you integrating with anything?
If your integrating by example with vbulletin then if your server is in the USA you would need to put either 5,6,7,8 in the GMT option in global options to take the time back to GMT timezone. Cause Japan is -19 hours GMT and when you set your vbulletin profile to Japan they calculate their software from GMT. Both vbulletin and invisionboard do this. Darn brits. Everyone else calculates timezones from the server timezone and does offsets. Anyway I was in Palau last year so I know your the same timezone as that. Your 14 hours back from me since I am east coast. So it all depends where your server is located in USA to what you set so give us more info and we can help determine your issue
March 6th, 2007, 03:49 PM
Thanks for quick response Chuck,
Well I had integrated my photopost pro with SMF forum and the forum is about Nepal so in my forum I set time offset 10.74
I tried to adding different offset in admin cp global setting but changed nothing
Hope you will help me out
March 6th, 2007, 07:11 PM
That is not the Photopost admin section your talking about and I have never seen a timeoffset use decimals as thats not valid for Photopost
We pull the user's specified timeoffset from there profile. If your somehow adjusting your smf timezone in admin to account for some other time than server time as I am not familar with how they work you can put a time in our GMT offset in admin to try and sync your time up to whatever your using in the forum. Where is your server in the USA? Nepal is GMT +5.45
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.