Welcome, Guest. Please Login or Register.
April 26, 2025, 08:00:15 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  General Category  |  Feedback  |  YaBB should use gmtime, not local time « previous next »
Pages: [1] Reply Ignore Print
Author Topic: YaBB should use gmtime, not local time  (Read 985 times)
luisr
Full Member
***
Posts: 120


Left blank to save space.

YaBB should use gmtime, not local time
« on: April 07, 2002, 09:13:26 PM »
Reply with quote

Just noticed today that YaBB (both SE and Gold) do not handle properly the start of DST.  Why??

In my case it didn't.  My web host is located in California (where DST started today) and I live in Puerto Rico, where DST is not observed.  Today I noticed that the board was showing the incorrect time.  It was one hour ahead of real time.

I am in the middle of transferring my board from YaBB 1 Gold SP1 to YaBB SE.  Both boards suffer from the same problem.

The board should use gmtime and look for the DST flag instead of the local time.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:YaBB should use gmtime, not local time
« Reply #1 on: April 07, 2002, 11:20:00 PM »
Reply with quote

We use strftime so that we can also use set locale.  If your server changes it's time for daylight savings time then your forum will also change as it uses the local server time.
Logged

DarkMinD
Noobie
*
Posts: 26


I love YaBB SE!

ICQ - 14602440 WWW
Re:YaBB should use gmtime, not local time
« Reply #2 on: April 08, 2002, 12:56:09 AM »
Reply with quote

thats true i also got that lil prob. since i live in PR since i just cant do anything about it i just change the time +1 in the preference setting in the board
Logged

Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:YaBB should use gmtime, not local time
« Reply #3 on: April 08, 2002, 04:06:55 AM »
Reply with quote

You also have to keep in mind that it isn't the entire world that uses DST.  In fact, I'm pretty sure that the majority of it doesn't.
Logged

luisr
Full Member
***
Posts: 120


Left blank to save space.

Re:YaBB should use gmtime, not local time
« Reply #4 on: April 08, 2002, 04:41:34 AM »
Reply with quote

Why do you need to set locale?  Just have the administrator enter the time zone relative to GMT in the forum configuration.
« Last Edit: April 08, 2002, 04:46:58 AM by luisr » Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:YaBB should use gmtime, not local time
« Reply #5 on: April 08, 2002, 11:29:13 AM »
Reply with quote

Set locale is used so that people can have months and days in their own language.

Why set GMT, just change your time offset.
Logged

luisr
Full Member
***
Posts: 120


Left blank to save space.

Re:YaBB should use gmtime, not local time
« Reply #6 on: April 08, 2002, 06:04:58 PM »
Reply with quote

The time zone does not have any effect on the language used to display months, etc.  The point is that there will be (and there are) boards that reside on servers located in places where DST is observed, yet the location that the site is intended to serve does not.  This makes administrators go and change the time offset every time the time changes.

By using GMT and letting administrators tell whether or not their location observes DST, the time is handled correctly regardless of time zone and DST differences between server and administrator.  Don't forget that web hosts are not necessarily chosen for their location and users are not necessarily close geographically.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:YaBB should use gmtime, not local time
« Reply #7 on: April 08, 2002, 06:46:58 PM »
Reply with quote

Let me explain...strftime allows users to make use of sel_locale so that their days and months are in their language.  So this is why we make use of the current time format.

If an admin has to sweat changing the time offset twice a year I don't feel sorry for them.

That being said, Joseph and I have talked about it before...I just think it's pretty petty (and that's only my opinion).
Logged

alexrolko
Guest
Re:YaBB should use gmtime, not local time
« Reply #8 on: April 13, 2002, 04:28:27 AM »
Reply with quote

QuoteMy web host is located in California (where DST started today) and I live in Puerto Rico, where DST is not observed.  Today I noticed that the board was showing the incorrect time.  It was one hour ahead of real time

one hour ahead of your local time... hrmm sounds like a timezone.

QuoteDon't forget that web hosts are not necessarily chosen for their location and users are not necessarily close geographically

which is exactly why you can easly change the time by simply changing the time offset in the Forum Preferences and Settings.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  YaBB should use gmtime, not local time « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.025 seconds with 16 queries.