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.
Edited by AlbertoP