Previous Thread
Next Thread
Print Thread
Hop To
Default Time Offset (Hours): how to set? #258434 05/25/2016 5:20 PM
Joined: Nov 2004
Posts: 173
luket Offline OP
enthusiast
OP Offline
enthusiast
Joined: Nov 2004
Posts: 173
Default Time Offset (Hours):
Unadjusted Server Time: 05/25/16 10:16 PM

So my server time is PST, so at the time of this writing 2:16 PM
I got a complaint that the message board was showing messed up times, so I looked and the message board was showing:
Unadjusted Server Time: 05/25/16 10:16 AM

I then set the adjacent field to -8 and it went to:
Unadjusted Server Time: 05/25/16 10:16 PM

What the heck ..
Any ideas?


Member since November 2004
Gold Member since Feb 2008
Re: Default Time Offset (Hours): how to set? [Re: luket] #258435 05/25/2016 5:25 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
This is the amount of hours difference between your server time and UTC/GMT (Greenwich Mean Time). It will correct your forum's displayed times to match UTC/GMT times. To provide the correct Time Zone offsets for your users, this number must be accurate.

Example: If your Server Time is currently 8:20 AM and the GMT is 2:20 PM, you would enter "6" in this box to add six hours to your forum times.

---
EDIT:
If your individual user is having an issue with incorrect times when they are logged in, they can easily correct their user account's time display to whatever offset is needed, to get it matching their local time.

If you always wanted to just use your local server time for Guests, you would enter "0" in the admin CP time offset box. Then let your users offset their own times, in their My Stuff > Site Preferences, based on your server's time.

Be aware though, if you have users who have adjusted their time offsets, and you then change your site time offset (from the admin Control Panel), all your user's times will be based on that new time.

Last edited by id242; 05/25/2016 5:36 PM. Reason: clarification

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Default Time Offset (Hours): how to set? [Re: isaac] #258436 05/25/2016 6:01 PM
Joined: Nov 2004
Posts: 173
luket Offline OP
enthusiast
OP Offline
enthusiast
Joined: Nov 2004
Posts: 173
What you're saying makes sense, however I made an adjustment in the Control Panel as per my original post (Pacific is -8) and the
Current server time went from 05/25/16 10:16 AM to 05/25/16 10:16 PM, which is wrong.
So I set it back to '0' offset, and now it stuck at 05/25/16 10:16 PM. (which is wrong)
I checked and my server time is correct.

As A test I then went into MyStuff and it says:

Current server time is 05-25-2016 10:54 PM
Choose your time offset in hours (..,-2,-1,0,1,2,..):

Now, it says this even though my Server's time is 2:54 P (correct) and the offset in my control panel is 0.
Something is not right.


Member since November 2004
Gold Member since Feb 2008
Re: Default Time Offset (Hours): how to set? [Re: luket] #258437 05/25/2016 6:27 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
On top of what you've already pointed out (and me seeing the same thing first hand about 6 months ago), I believe there may also be a language string error. In UBBT75x's CP, it should read "Server Time Offeset" (as it already does), and in the My Stuff > Site Preferences (User Preferences) it should read as "Forum Time Offset."

A lot of this has been rewritten for UBBT76x series (not merged to ubbcentral's code as of this post).

I did see exactly what you are pointing out. There definitely is an inconsistency in one location, which conflicts with all the other locations that have constant times.


for reference:
UBBT75x uses server time offsets.
UBBT76x uses timezone offsets (UTC)


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Default Time Offset (Hours): how to set? [Re: isaac] #258438 05/25/2016 6:45 PM
Joined: Nov 2004
Posts: 173
luket Offline OP
enthusiast
OP Offline
enthusiast
Joined: Nov 2004
Posts: 173
So just to be clear...

It's a bug, and there is no known workaround?


Member since November 2004
Gold Member since Feb 2008
Re: Default Time Offset (Hours): how to set? [Re: luket] #258439 05/25/2016 6:56 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
I believe the issues is related just to one page, and how it displays the time.

Posts and other content creation dates should all work exactly as expected.

IIRC, at one point there was a "Current time: ##:##:##" displayed in the footer when debugging mode was turned on. But I dont see that in the code any more. I guess that should be added back. It could be helpful in some situations. Specifically situations like this. lol

I wish I could provide more information on this, but I am also digging through the code and finding things that need to be fixed. This definitly is a bug you're seeing.

Last edited by id242; 05/25/2016 6:57 PM.

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Default Time Offset (Hours): how to set? [Re: luket] #258440 05/25/2016 8:53 PM
Joined: Feb 2007
Posts: 1,276
JAISP Offline
Veteran
Offline
Veteran
Joined: Feb 2007
Posts: 1,276
I thought I was the only one seeing this in the 7.5.X and also was looking at the beta version and I was totally confused with this as well. Perhaps some serious thinking and consideration needs to be placed in the time coding. Even though 7.6.0 will be the converting to the UTC standard we should also still have some consideration for the server local time.

Re: Default Time Offset (Hours): how to set? [Re: luket] #258441 05/25/2016 9:42 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
Well, all of the time code in general is being rewritten for 7.6.0 and is not present in the alpha snapshots.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Default Time Offset (Hours): how to set? [Re: JAISP] #258442 05/25/2016 9:46 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
Originally Posted by JAISP
I thought I was the only one seeing this in the 7.5.X and also was looking at the beta version and I was totally confused with this as well. Perhaps some serious thinking and consideration needs to be placed in the time coding.

JAISP, what you were looking at within the 760 code, were lines from 759 that were commented out while new lines were being written. Those commented-out lines even had developer notes of why they were commented out, and what they were replaced with.


Originally Posted by JAISP
Even though 7.6.0 will be the converting to the UTC standard we should also still have some consideration for the server local time.

The Server's time is pretty meaningless to the end user.

The end user should only ever be presented with two time choices:
• A correct timezone for Unregistered Guests / and what your New Users are defaulted to.
• Registered Members can choose their own local timezone.


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Default Time Offset (Hours): how to set? [Re: luket] #258444 05/26/2016 5:05 AM
Joined: Feb 2007
Posts: 1,276
JAISP Offline
Veteran
Offline
Veteran
Joined: Feb 2007
Posts: 1,276
When looking in the 7.6.0 code when I find something I always compair to 7.5.9 code to see what changes where made. If there is an issue and the code is the same I then look back at 7.5.8 and even 7.5.7 pretty much the reason I had stated I think once that the bug or error was back an issue or so.

Any program that has been around a long time and new versions or additions are never started from scratch on a newer rewrite their for sometimes bugs may be present in several versions in areas not so well traveled. Over 80% of all code is recycled in every software and program I have ever seen or written my self, if not there would never be new software releases. I have been coding since 1982 so I speak from experience.

I see your reasoning for UTC in UBB.threads however I still see revelance of the server time too. Even though this is a internationally used product a local website operator would still like to see the server time in the control panel for various reasons especially if his server is sitting only a few feet away from him or her. I'm not saying base the entire software in one or the other but at least have it display on the administrative dashboard for reference as his or her server time may be off for some odd reason. I have had issues with my own servers once in a while as to where my server(s) and it time based systems became off by an hour for unknown reasons even after having my stuff polling NTP Servers.

Now think about that if you have an intrusion issue and you will need to review the server logs themselves and your looking for a log entry of 23:31 20160504 and your server is off and the server log is showing it as 00:31 20160505 as not all countries utilize the spring forward or fall back and your NTP server is not selecting the proper time season for some odd reason as it is polling a time server in a different time zone. That could create an issue. It has for me when a trusted person ripped off my database and my times didn't match from the software log to the server log.

Re: Default Time Offset (Hours): how to set? [Re: luket] #258450 05/26/2016 10:42 AM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
JAISP, reread my post.

end user != site admin


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Default Time Offset (Hours): how to set? [Re: luket] #258458 05/26/2016 4:30 PM
Joined: Feb 2007
Posts: 1,276
JAISP Offline
Veteran
Offline
Veteran
Joined: Feb 2007
Posts: 1,276
Ok, I will just stick to finding bugs.

Re: Default Time Offset (Hours): how to set? [Re: JAISP] #258459 05/26/2016 4:57 PM
Joined: Apr 2004
Posts: 1,549
isaac Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,549
Originally Posted by JAISP
Ok, I will just stick to finding bugs.


I like it when you work on bug-finding. It gives us more to work on, and makes the product better for everyone.

+1 to your post smile


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: Default Time Offset (Hours): how to set? [Re: luket] #258467 05/29/2016 12:04 PM
Joined: Nov 2004
Posts: 173
luket Offline OP
enthusiast
OP Offline
enthusiast
Joined: Nov 2004
Posts: 173
While we're on the subject, relative time is also broken.

Show Relative Timestamps:
This will show timestamps relative to the current time if within 48 hours, such as '5 minutes ago', 'Yesterday @ 2:30'


I tuned this off, then made a post (see the 'time check' and 'time check2' posts)
http://www.game-master.net/pit/ubbthreads.php/forums/125/1.html

Could we get a patch for these time issues? Message board timestamps aren't a 'feature' they are an important core asset and needs to work reliably.



Member since November 2004
Gold Member since Feb 2008

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
0 registered members (), 72 guests, and 408 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)