Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (ATCEMSEA9112, KenR), 75 guests, and 262 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Gizmo
Gizmo
Portland, OR; USA
Posts: 16,784
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 14
FREAK 11
M4TT 9
mmkk 5
Ruben 4
isaac 4
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Default Time Offset (Hours): how to set? #258434
05/25/16 05:20 PM
05/25/16 05:20 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
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
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Default Time Offset (Hours): how to set? [Re: luket] #258435
05/25/16 05:25 PM
05/25/16 05:25 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
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/16 05:36 PM. Reason: clarification
Re: Default Time Offset (Hours): how to set? [Re: isaac] #258436
05/25/16 06:01 PM
05/25/16 06:01 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
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/16 06:27 PM
05/25/16 06:27 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
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)

Re: Default Time Offset (Hours): how to set? [Re: isaac] #258438
05/25/16 06:45 PM
05/25/16 06:45 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
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/16 06:56 PM
05/25/16 06:56 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
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/16 06:57 PM.
Re: Default Time Offset (Hours): how to set? [Re: luket] #258440
05/25/16 08:53 PM
05/25/16 08:53 PM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
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/16 09:42 PM
05/25/16 09:42 PM
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
Gizmo Offline
UBB.threads Developer
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,784
Portland, OR; USA
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.
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/16 09:46 PM
05/25/16 09:46 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
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.

Re: Default Time Offset (Hours): how to set? [Re: luket] #258444
05/26/16 05:05 AM
05/26/16 05:05 AM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
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/16 10:42 AM
05/26/16 10:42 AM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
JAISP, reread my post.

end user != site admin

Re: Default Time Offset (Hours): how to set? [Re: luket] #258458
05/26/16 04:30 PM
05/26/16 04:30 PM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
Ok, I will just stick to finding bugs.

Re: Default Time Offset (Hours): how to set? [Re: JAISP] #258459
05/26/16 04:57 PM
05/26/16 04:57 PM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
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

Re: Default Time Offset (Hours): how to set? [Re: luket] #258467
05/29/16 12:04 PM
05/29/16 12:04 PM
Joined: Nov 2004
Posts: 214
luket Offline OP
enthusiast
luket  Offline OP
enthusiast
Joined: Nov 2004
Posts: 214
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

Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
I want to update forum but can't find license
by dimaninc. 11/23/17 10:51 AM
Forum Statistics
Forums36
Topics35,014
Posts190,530
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)