miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Post Time one hour out

Author Steve Shaw
Registered
#1 | Posted: 6 Jul 2013 00:34 
I'm doing well with dumb questions today...

Why is the post time one hour out?
I can;t find any control for it - and a forum search has shown no similar posts regarding this...

:o(

Author Paul
Lead Developer
#2 | Posted: 8 Jul 2013 14:48 
Steve Shaw:
Why is the post time one hour out?

Where?

Author Steve Shaw
Registered
#3 | Posted: 8 Jul 2013 15:28 
In the time stamp on any post - the time is an hour out.
I've checked with my hosting provider and they say it isn't them...

???

Author kuopassa
Registered
#4 | Posted: 9 Jul 2013 01:42 | Edited by: kuopassa 
I think it could be changed by modifying inside setup_options.php this line:

//$timeDiff=21600;

Remove // at the beginning and set some value instead of 21600 so you should see how things change... :-) According to the official manual, having 21600 means +6 hours, so 10800 should be +3 and 5400 is +1.5 etc.

Author Steve Shaw
Registered
#5 | Posted: 9 Jul 2013 07:52 
Where is the time taken from in the first place?
Is it the server where Minibb is being hosted, or somewhere else?
If the host server I would assume the time to be correct as my server is in the UK, the same as me?
But, I'll have a play with that configuration...

Thanks for the info - I missed that in the manual!

Author Steve Shaw
Registered
#6 | Posted: 9 Jul 2013 09:00 
I thought I'd remove the time and just have the day, but I can't seem to work-out the use of: $dateFormat = $dateOnlyFormat.' '.$timeOnlyFormat; or $dateFormat = 'j F Y H:i:s';

The manual instructions are a tad confusing...

I have managed to remove the time from the forum posts, but I get a comma left after the day.
As always, any help appreciated... I am slowly making progress with understanding PHP

;o)

Author Paul
Lead Developer
#7 | Posted: 9 Jul 2013 11:14 
Steve Shaw:
In the time stamp on any post - the time is an hour out.

Ok, I suppose you mean your forum with this, not ours :)

Steve Shaw:
Where is the time taken from in the first place?

It's taken from mySQL database. Each post has time stamp assigned and saved.
In turn, when being saved into database, this time is taken directly from the server's system.
You must be what kind of original time your server runs.

You can check the original time on your hosting server with a simple script:

<?php
echo date('Y-m-d H:i:s');
?>

Steve Shaw:
If the host server I would assume the time to be correct as my server is in the UK, the same as me?

Not at all. The server could have any time set up - depending on what customers it keeps.

Steve Shaw:
but I get a comma left after the day

Possibly it comes for posts, which were posted 'Today' or 'Yesterday'. In that case, the script adds comma after one of these words. You may try to modify convert_date() function of bb_functions.php to remove it (OR you may just try to delete or disable $l_today var from the language pack - then the script will bypass today/yesterday statements).

Author marsbar
Associated Member
#8 | Posted: 9 Jul 2013 11:19 | Edited by: marsbar 
[Edit: deleted my original reply to the OP, as Paul has given an official reply--and a lot more helpful one than mine!
@Paul: No one had replied to the OP when I arrived earlier. I must have been still busy typing when you posted your reply--you fast typist! :)]

Author Steve Shaw
Registered
#9 | Posted: 9 Jul 2013 12:06 
All great feedback - thanks!

I really do apologise for being numpty with PHP!!!

Author Batu
Registered
#10 | Posted: 19 Dec 2015 23:25 
Bookmarked!

Specific miniBB Support Forums / Specific / Post Time one hour out Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB