Print Page | Close Window

cant change timezone!

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=2375
Printed Date: 02 April 2026 at 6:36am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: cant change timezone!
Posted By: PrimeraRacer
Subject: cant change timezone!
Date Posted: 02 May 2003 at 4:44pm

Hiya,

I'm now running on V7.01 but I cant find the option to change the time offset.....am I just blind lol

I need to set it to allow for the fact my server is in germany

 

Please Help




Replies:
Posted By: eksimba
Date Posted: 02 May 2003 at 4:54pm
It should be in your user profile.

-------------
- eric


Posted By: WebWiz-Bruce
Date Posted: 03 May 2003 at 1:32am

The time off-set in the admin area is for non logged in users and new registreded users.

You need to set the time off-set yourself by editing your profile.



-------------
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: Darryld
Date Posted: 10 June 2003 at 9:49am
Originally posted by -boRg- -boRg- wrote:

The time off-set in the admin area is for non logged in users and new registered users.

Hi,

I cannot find the time zone offset in the admin screen - my server is hosted in the US and I'm UK. Searched it three times now!

Can someone please point me in the right direction?

Thanks

Darryl



Posted By: WebWiz-Bruce
Date Posted: 10 June 2003 at 10:50am
You can change the date format and time format, but the time off-set needs to be set by each user in thier profile.

-------------
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: testp
Date Posted: 10 June 2003 at 12:16pm

-boRg- I hope you will reconsider adding in the option to select a default time offset that will apply to all users. When a user is logged out it the forum will display something like "All forum times are GMT -7:00" and when they're logged in the display will reflect the timezone they have selected.

Also I think it's more user-friendly if the time offset selection displays the actual timezones instead of just the numbers. Something like:
  Pick your timezone: 
    <option>GMT +1:00 Amsterdam, Berlin, Rome, Vienna</option>



Posted By: 808Rider
Date Posted: 10 June 2003 at 12:22pm

If you go in the database and change the time offset of the guests account wouldn't this set the standard time for a user that is not logged in? Haven't tried it, but in theory sounds like a solution.

I'll give it a go and see if it works.

 



-------------
PodcastPUP: http://podcastpup.com - http://podcastpup.com
808Talk: http://808Talk.com - http://808Talk.com
808TTV: http://808Talk.tv - http://808Talk.tv


Posted By: WebWiz-Bruce
Date Posted: 10 June 2003 at 12:23pm
This isn't possible with ASP, as unlike PHP and some other server side languages you can't get the GMT time in ASP. The only time you can get is the server time so all times have to go from the server time.

The time off-set for all users was removed and replaced by a system that allows the user to change the forum time off-set to their own, the two wouldn't work side by side.

I too am in the UK and this forum is on a US server, so I jst have to put up with the limitations of ASP and just change the time off-set to my own in my profile.


-------------
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: testp
Date Posted: 10 June 2003 at 12:54pm

I'm thinking that it can be accomplished by code. Have an admin option to select the time zone the server is located in, then calculate all other times based on that.

This would be very useful as there are a lot of community forums out there that are place-specific.



Posted By: Darryld
Date Posted: 11 June 2003 at 6:56am

Thanks Borg.

As least I know now and its not me going blind

Quality forum



Posted By: AlbertoP
Date Posted: 20 July 2003 at 7:45am

Hi,

it's not so difficult to return to old functionality (WWF 6.XX) with plus of having server and user time zone.

Don't do this if you are not enough skilled.

Append two fields to forum's database table tblDatetimeFormat

Field 1: Server_offset           (Text length 1)
Field 2: Server_offset_hours  (Integer)

In these fields you have to insert your timezone (i.e. if server is in the USA and forum in Germany you have to set + 7)

 

Modify file /functions/functions_date_time_format.asp this way

modify raw 52 from
Dim saryDateTimeData(17)
to
Dim saryDateTimeData(19)

Insert these lines after raw 92
 saryDateTimeData(18) = rsDateTimeFormat("Server_offset")
 saryDateTimeData(19) = rsDateTimeFormat("Server_offset_hours")

Modify function DateFormat; insert rows in bold:

 'If the array is empty set the date as wish
 If isNull(saryDateTimeData) Then
  
  'Set the date as orginal
  DateFormat = dtmDate
  
 'If there is a data in the array then format the date
 Else
  'Place the server time off set onto the recorded database time
  If saryDateTimeData(18) = "+" Then
   dtmDate = DateAdd("h", + CInt(saryDateTimeData(19)), dtmDate)
  ElseIf saryDateTimeData(18) = "-" Then
   dtmDate = DateAdd("h", - CInt(saryDateTimeData(19)), dtmDate)
  End If
  'Place the users time off set onto the recorded database time
  If strTimeOffSet = "+" Then
...

Same for TimeFormat function (insert rows in bold)

 'If the array is empty then return tyhe original time
 If isNull(saryDateTimeData) Then
  
  'Set the date as wish
  TimeFormat = dtmTime
  
 'If there is a data in the array then format the date
 Else
  'Place the server time off set onto the recorded database time
  If saryDateTimeData(18) = "+" Then
   dtmTime = DateAdd("h", + CInt(saryDateTimeData(19)), dtmTime)
  ElseIf saryDateTimeData(18) = "-" Then
   dtmTime = DateAdd("h", - CInt(saryDateTimeData(19)), dtmTime)
  End If
  'Place the users time off-set onto the recorded database time
  If strTimeOffSet = "+" Then
...

This way you have both the old WWF functionality and a new one that consider both Server and User TimeZone.

 

 




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