Print Page | Close Window

Default Time Zone Offset

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7991
Printed Date: 06 April 2026 at 7:06pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Default Time Zone Offset
Posted By: cooper
Subject: Default Time Zone Offset
Date Posted: 10 December 2003 at 10:22am

On the registration page, how can I make it to where the hours offset is already on -6 (as opposed to +0)? The reason I am asking is that most people using my forum will be from the same time zone, & it would be easier on them if they didn't have to set it to -6 on their own.

Thanks!

Oh, and I just thought of a another question... How can I make it to where hitting the Enter key when typing a post will not be double-spaced (I prefer single).




Replies:
Posted By: cooper
Date Posted: 10 December 2003 at 10:23am

I have another question (sorry). Why is it that in some posts, such as the one I just made above, the text starts three lines down? Why can't they all start on the first line?



Posted By: WebWiz-Bruce
Date Posted: 10 December 2003 at 10:39am
For your first question you could edit the register.asp page so that -6 is the selected value on the html form.

For the other questions the reason for them is that you are using IE, for some reason in IE microsoft have implemented RTE features that when you hit enter it places <p> around your text block.

To stop this either use SHIFT -> ENTER in IE, or change to a better browser like Mozilla Firebird where Mozilla have implemented RTE features in a different way so that you don't get these spaces.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: cooper
Date Posted: 10 December 2003 at 10:44am

This part?

         <td width="50%" valign="top" class="text" background="<% = strTableBgImage %>"><select name="serverOffSet">
        <option value="+" <% If strTimeOffSet = "+" Then Response.Write("selected") %>>+</option>
        <option value="-" <% If strTimeOffSet = "-" Then Response.Write("selected") %>>-</option>
       </select>
       <select name="serverOffSetHours"><%

 'Create list of time off-set
 For lngLoopCounter = 0 to 24
  Response.Write(VbCrLf & "        <option value=""" & lngLoopCounter & """")
  If intTimeOffSet = lngLoopCounter Then Response.Write("selected")
  Response.Write(">" & lngLoopCounter & "</option>")
 Next
       
%>      
       </select> <% = strTxtHours %></td>

I don't see what to change. Could you help me (I was able to figure it out in older versions... just not this one).



Posted By: india
Date Posted: 11 December 2003 at 1:27am

Hello Borg,

Im on GMT +5.30. But the time zone settings done not have .30's. How can i add that ?



Posted By: india
Date Posted: 11 December 2003 at 1:35am
Originally posted by cooper cooper wrote:

This part?

         <td width="50%" valign="top" class="text" background="<% = strTableBgImage %>"><select name="serverOffSet">
        <option value="+" <% If strTimeOffSet = "+" Then Response.Write("selected") %>>+</option>
        <option value="-" <% If strTimeOffSet = "-" Then Response.Write("selected") %>>-</option>
       </select>
       <select name="serverOffSetHours"><%

 'Create list of time off-set
 For lngLoopCounter = 0 to 24
  Response.Write(VbCrLf & "        <option value=""" & lngLoopCounter & """")
  If intTimeOffSet = lngLoopCounter Then Response.Write("selected")
  Response.Write(">" & lngLoopCounter & "</option>")
 Next
       
%>      
       </select> <% = strTxtHours %></td>

I don't see what to change. Could you help me (I was able to figure it out in older versions... just not this one).

I dont think its this part. plz paste a bit up and down



Posted By: WebWiz-Bruce
Date Posted: 11 December 2003 at 2:51am
It would require a re-write of most of the forum code to get half hours to work.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: cooper
Date Posted: 11 December 2003 at 11:06am

Here's my problem:

<option value="+" <% If strTimeOffSet = "+" Then Response.Write("selected") %>>+</option>
<option value="-" <% If strTimeOffSet = "-" Then Response.Write("selected") %>>-</option>

I'm assuming that in this case, for example, the code is saying to check the user's strTimeOffSet & make it the selected item on the list when viewed (this may be the wrong assumption, which would throw the rest of my post off). If it is a new user, however, where is it getting this information? That's the information I would want to change to make this do what I want it to do.



Posted By: thekiwi
Date Posted: 11 December 2003 at 3:22pm
Originally posted by cooper cooper wrote:

This part?

         <td width="50%" valign="top" class="text" background="<% = strTableBgImage %>"><select name="serverOffSet">
        <option value="+" <% If strTimeOffSet = "+" Then Response.Write("selected") %>>+</option>
        <option value="-" <% If strTimeOffSet = "-" Then Response.Write("selected") %>>-</option>
       </select>
       <select name="serverOffSetHours"><%

 'Create list of time off-set
 For lngLoopCounter = 0 to 24
  Response.Write(VbCrLf & "        <option value=""" & lngLoopCounter & """")
  If intTimeOffSet = lngLoopCounter Then Response.Write("selected")
  Response.Write(">" & lngLoopCounter & "</option>")
 Next
       
%>      
       </select> <% = strTxtHours %></td>

I don't see what to change. Could you help me (I was able to figure it out in older versions... just not this one).

Thats the code for displaying it, but there are variables use to monitor the values

To get the timeoffset to default to different values than + and 0 just edit common.asp and set the values to something like:

intTimeOffSet = 8
strTimeOffSet = "-"

Then when someone goes to register it will be prefilled with those values.  Is that what you were meaning?



-------------
Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting


Posted By: cooper
Date Posted: 11 December 2003 at 11:53pm
Yes! Thank you!!!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net