boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting Correct Time Zone
Goto page Previous  1, 2
 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
hazel



Joined: 20 Jan 2004
Posts: 38
Location: Philippines

PostPosted: Sat Feb 21, 2004 1:05 pm    Post subject: Reply with quote

me too. Example i post at around 10:00 AM it says on the blog like 8:40 pm.. or something.. how can i change that?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
lauoakle



Joined: 22 Feb 2004
Posts: 1

PostPosted: Sun Feb 22, 2004 4:36 am    Post subject: Time Zone Settings Reply with quote

i was wondering if anyone knows the code for the time zone. i have the time set on my blog but it keeps saying i'm in PST time. i need to reset it to EST time but i dont know how to set up the code.


this is what i have already h:i:s:A

thank
-Laurie
Back to top
View user's profile Send private message
Messy0_0



Joined: 23 Feb 2004
Posts: 3
Location: UK

PostPosted: Tue Feb 24, 2004 11:56 am    Post subject: Reply with quote

I'm in the UK, my server is in the US, but at a difference of GMT -6hrs20mins.

Seems to be that if I enter 6.20 as the time difference, it will, after submiting be entered as 6, but, strangely enough, none of the old posts are affected, which is why you might not see the difference. But, when I posted again, the difference was exactly +6.20, right on time. I'm not sure if this is just me, but it sure as hell worked.

So in other words, it won't change old post times but in new ones it should still work at whatever value you entered, even if it doesn't show, except on posts after.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Nackereia



Joined: 06 Mar 2004
Posts: 6

PostPosted: Sun Mar 07, 2004 12:36 pm    Post subject: Reply with quote

michel v wrote:
OK, I see the problem is with how the b2settings table is set up. time_difference is a column of type INT, where it should be FLOAT.
It will be fixed in future releases.

Here's a temporary fix that yu can apply:
Code:
<?php
# correct time_difference bug

include("./b2config.php");
include("$b2inc/b2functions.php");

dbconnect();

$sql = "ALTER TABLE $tablesettings CHANGE time_difference time_difference FLOAT(4) DEFAULT '0' NOT NULL";
$result = mysql_query($sql) or die("<p>There's a problem.</p><p>Here's the SQL query:<br />$sql</p><p>MySQL said:<br />".mysql_error());

echo "You fixed the timezone problem. You can safely delete this file now.";

?>

Save that as timezonefix.php (or whatever name you fancy), upload it in your b2 directory, and load it in your browser.
It will fix the time_difference column, allowing you to use -0.5 Smile


Tried that.

beachgerl wrote:
beachgerl wrote:
I noticed the time is all wrong on weblog itself while I correctly set up time difference and timezone in Options page of b2 admin panel. Why isn't the weblog itself displaying the correct time? For example, when it's actually 7 pm but my weblog shows 4 pm instead. Is this a bug and how do I remedy this?


I overlooked this part in ReadMe.html. I have this finally resolved. I shouldn't have skipped last part of Read Me file.

Quote:
Template tags are these:

<?php the_time() ?>
the time of the post. example: 18:37:00 (default is hh:mm:ss)

Parameters:

* format string (default: "H:i:s")

eg: Make the change to <?php the_time("H:i:s A") (or whatever format you prefer) from <?php the_time() in your template if you're using one.


Note: you can change the way the date & time are displayed in the Options page.
once you understand the format strings for the date & time (explained in the Options page), you can change the display right on the template: for example, the_date("d.m.Y") to have dates like 25.12.2001, the_time("B") to have Swatch Internet Time.

If you change the display of the date on the template, changing it from the options page won't have any effect.

Note about the_date(): if you want all your posts to bear the date, you'll have to use the_time() instead, with a date format string. for example, to have all your posts show like "25.12.2001 @ 8:04:50 AM" you'll have the_time("d.m.Y @ g:i:s A"). You can also repeat this template tag 2 times with 2 different formats: the_time("d.m.Y") for the date, and then later the_time("g:i:s A") for the time of the day.


Tried that.

Neither one worked.

mysteryman wrote:
cLin wrote:

when you say server timezone, are you referring to the server of where yourfiles are hosted? because right now i posted at 6 PM and it shows at 9 PM and i want to make it so it shows the timeon my computer, the clock that is

Yes, and what you want and need to do is under options at the top of b2edit.php, between Team and Categories.

This is what it looks like:

Your time difference would be -3 where mine is -7.


Haven't tried that, as I cannot see your images. Can you please put them back? I'm willing to try it! Very Happy :$
Back to top
View user's profile Send private message Visit poster's website
Marije



Joined: 08 Jul 2004
Posts: 9
Location: Somewhere...

PostPosted: Tue Jan 04, 2005 10:55 am    Post subject: Reply with quote

Thank you very very very much!
Back to top
View user's profile Send private message Visit poster's website AIM Address
hazel



Joined: 20 Jan 2004
Posts: 38
Location: Philippines

PostPosted: Sat Jan 08, 2005 4:45 am    Post subject: Reply with quote

Try this solution as it worked for me. Smile

I blogged at around 11:00 AM, but the time on my blog says 1:30:33 AM (or something like that, i forgot exactly). I checked the options (log in your b2 admin first -- or http://domain.com/b2edit.php"), before it was written 8 in the timezone.. I changed that to 17. Post a new entry again at 11:30. Clicked "blog this". Checked my site, then viola.. the time says 11:31.. just a second delay but I can tolerate that.

so in other words, try changing the timezone in the option then post an trial entry, check if it's correct already. If not change it again until it's correct. Just a reminder: When you change the timezone it doesn't affect or change those past posts. It just changes those future entries that you will post. Gets?? Hope it helped. Smile
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group