The Forum has been Updated
        The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
    
                        How could we adjust time in incremental of 1/2hr, my system is 1/2hr different with the forum time.<
                             
                    
                
                                Postet den 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        How is it a 1/2 hour off?  I thought all time zone dividers were on the hour?<
                                        
                                Dave Maxwell
Barbershop Harmony Freak
                                    Barbershop Harmony Freak
                                Postet den 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        AFAIK, there are some places with 1/2 hour off like Newfoundland/Canada. 
Mayeb, Snitz should take that into account.<
                                Mayeb, Snitz should take that into account.<
                                Postet den 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        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.<
                                        
                                    
                                
                                Postet den 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        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)
<
                                        
                                    
                                (I tried a search, honest)
                                Postet den 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        No, I don't think anyone did.<
                                        
                                    
                                
                                Postet den 
                                
                                
                                
                                    
                                    
                                
                            
                            
                                        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
	
to
	
2. In inc_function_common.asp, I changed the chkSelect function from:
to
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.
                                        
                                    
                                1. In admin_config_datetime.asp, I changed
Code:
for iTimeAdjust = -24 to 24Code:
for iTimeAdjust = -23 to 23 step 0.52. In inc_function_common.asp, I changed the chkSelect function from:
Code:
function chkSelect(actualValue, thisValue)
	if isNumeric(actualValue) then actualValue = cLng(actualValue)
	if actualValue = thisValue then
	        chkSelect = " selected"
	else 
		chkSelect = ""
	end if
end functionto
Code:
function chkSelect(actualValue, thisValue)
	if cStr(actualValue) = cStr(thisValue) then
		chkSelect = " selected"
	else 
		chkSelect = ""
	end if
end functionThe 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.
                                Sist redigert av
                                
                            
                        
                                Postet den 
                                
                                
                                
                                    
                                    
                                
                            
                            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.You could use csng or cdbl instead of clng.
I can't think of any reason why converting both arguments to strings in the chkSelect function should cause problems elsewhere.
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
                    
                    Loading...