Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Frequently Asked Questions
 FAQ Addition Requests
 time adjust
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Japaro
Starting Member

Canada
8 Posts

Posted - 31 October 2002 :  22:55:04  Show Profile  Visit Japaro's Homepage  Reply with Quote
How could we adjust time in incremental of 1/2hr, my system is 1/2hr different with the forum time.<

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 01 November 2002 :  08:14:08  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message  Reply with Quote
How is it a 1/2 hour off? I thought all time zone dividers were on the hour?<

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

Rasco
Advanced Member

Germany
3192 Posts

Posted - 01 November 2002 :  10:32:29  Show Profile  Send Rasco an ICQ Message  Reply with Quote
AFAIK, there are some places with 1/2 hour off like Newfoundland/Canada.
Mayeb, Snitz should take that into account.<

German Snitz Forum
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 01 November 2002 :  15:30:58  Show Profile  Reply with Quote
Central Australia is also a half-hour. Play around with the value for strTimeAdjust in the FORUM_CONFIG_NEW table and see what you can do.<
Go to Top of Page

Ursus
Starting Member

Australia
1 Posts

Posted - 08 June 2003 :  08:40:57  Show Profile  Reply with Quote
As a new user in South Australia, where the time zone is UTC - 9:30, it'd be interesting to know if anyone came up with a solution to this?

(I tried a search, honest) <
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 08 June 2003 :  14:32:14  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
No, I don't think anyone did.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

geoffh
Starting Member

Australia
5 Posts

Posted - 12 July 2009 :  05:34:54  Show Profile  Reply with Quote
I too needed to set a time zone difference at a 1/2 hour boundary.
The following mod seems to work.

1. In admin_config_datetime.asp, I changed

for iTimeAdjust = -24 to 24

to
for iTimeAdjust = -23 to 23 step 0.5



2. In inc_function_common.asp, I changed the chkSelect function from:

function chkSelect(actualValue, thisValue)
	if isNumeric(actualValue) then actualValue = cLng(actualValue)
	if actualValue = thisValue then
	        chkSelect = " selected"
	else 
		chkSelect = ""
	end if
end function


to

function chkSelect(actualValue, thisValue)
	if cStr(actualValue) = cStr(thisValue) then
		chkSelect = " selected"
	else 
		chkSelect = ""
	end if
end function



The chkSelect function failed when dealing with fractional numbers, since it was converting numeric values to long integers, thus truncating time adjustments which are fractions of an hour.

I can't think of any reason why converting both arguments to strings in the chkSelect function should cause problems elsewhere.


Edited by - geoffh on 12 July 2009 13:24:49
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 13 July 2009 :  05:26:13  Show Profile  Reply with Quote
quote:
Originally posted by geoffh
The chkSelect function failed when dealing with fractional numbers, since it was converting numeric values to long integers, thus truncating time adjustments which are fractions of an hour.

I can't think of any reason why converting both arguments to strings in the chkSelect function should cause problems elsewhere.
You could use csng or cdbl instead of clng.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07