Author |
Topic |
eleven
Starting Member
Turkey
32 Posts |
|
samyot
Junior Member
Canada
242 Posts |
|
riggz
Starting Member
26 Posts |
Posted - 19 July 2001 : 00:17:43
|
i am also having a problem with the times being off. I have people posting and it says its like 1 day in advance.
|
|
|
tomw
Starting Member
USA
20 Posts |
Posted - 19 July 2001 : 10:13:48
|
samyot & riggz the work around that is posted here somewhere that I have used is to blank the M_STRTIMEADJUST field in the table Forum_Members for the Admin account and any others that are having this problem. Then through the system, resave the profile with the correct TimeZone. You need to do this even if it appears your data in that field is correct. I do not know why it works, but it does. I assume it replicates elsewhere in the database, or maybe to the cookies. This is simple fix if only your admin account is involved, but if you have a hundred users, LOL Good Luck
Tom |
|
|
samyot
Junior Member
Canada
242 Posts |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 30 July 2001 : 14:11:14
|
tomwis corretc,in that updating your profile resets the value in your cookie,however itmay be a variableerror,could you email me your config.asp,inc_profile.asp register.asp and pop_profile.asp,Iwillcheck them
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 31 July 2001 : 03:51:04
|
the timezone mod works fine, however, lastheredate in statistics area does not show the right time. I set forum to GMT+8, visiting at the same zone, and lastheredate shows 8 hours later.
there's a function ReadLastHereDate(UserName) in inc_functions.asp
and here's the code to show the date.
if IsEmpty(Session(strCookieURL & "last_here_date")) then Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName) end if
<% ShowLastHere = (cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"))) > 0) if ShowLasthere then %> You Last Visited - <% =ChkDate(Session(strCookieURL & "last_here_date")) %> <% =ChkTime(Session(strCookieURL & "last_here_date")) %> <%end if %>
how to fix it?
thanks
Edited by - bjlt on 02 August 2001 01:01:04
Edited by - bjlt on 02 August 2001 12:48:13 |
|
|
massena
Starting Member
France
4 Posts |
Posted - 03 August 2001 : 11:37:42
|
Hello,
I have a problem with active users (active_users.asp). It indicates the time of connection by basing itself at a time of the server.
How to make so that it uses the hour of the forum and not that of the server? (7 hours ago of difference)
Thank you
PS: sorry for my English but it is not my mother tongue
Massena
Edited by - massena on 03 August 2001 11:42:01 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 03 August 2001 : 13:03:38
|
quote:
Hello,
I have a problem with active users (active_users.asp). It indicates the time of connection by basing itself at a time of the server.
How to make so that it uses the hour of the forum and not that of the server? (7 hours ago of difference)
Thank you
PS: sorry for my English but it is not my mother tongue
Massena
Edited by - massena on 03 August 2001 11:42:01
This is not related to thetimezone mod, you should not really post it here, but here is a fix.
in the active users code, look for this
' SET WHEN TO TIMEOUT THE USER ' DO THIS IN SECONDS strOnlineDate = DateToStr(Date) strOnlineCheckInTime =
The value after strOnlineCheckInTime = should be DateToStr(strForumTimeAdjust)
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 03 August 2001 : 13:06:04
|
quote:
the timezone mod works fine, however, lastheredate in statistics area does not show the right time. I set forum to GMT+8, visiting at the same zone, and lastheredate shows 8 hours later.
there's a function ReadLastHereDate(UserName) in inc_functions.asp
and here's the code to show the date.
if IsEmpty(Session(strCookieURL & "last_here_date")) then Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName) end if
<% ShowLastHere = (cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"))) > 0) if ShowLasthere then %> You Last Visited - <% =ChkDate(Session(strCookieURL & "last_here_date")) %> <% =ChkTime(Session(strCookieURL & "last_here_date")) %> <%end if %>
how to fix it?
thanks
Edited by - bjlt on 02 August 2001 01:01:04
Edited by - bjlt on 02 August 2001 12:48:13
My thinking is this, it has stored the cookie using your adjusted time, so is adding another 8 hours.
change the code to this
if IsEmpty(Session(strCookieURL & "last_here_date")) then Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName) end if
<% ShowLastHere = (cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"))) > 0) if ShowLasthere then %> You Last Visited - <% =DisplayDate(Session(strCookieURL & "last_here_date")) %> <% =Display(Session(strCookieURL & "last_here_date")) %> <%end if %>
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 04 August 2001 : 07:12:58
|
quote:
My thinking is this, it has stored the cookie using your adjusted time, so is adding another 8 hours.
change the code to this
You Last Visited - <% =DisplayDate(Session(strCookieURL & "last_here_date")) %> <% =Display(Session(strCookieURL & "last_here_date")) %> <%end if %>
Well, it dosen't work. DisplayDate show incorrect date, while Display showed nothing. ?
|
|
|
samyot
Junior Member
Canada
242 Posts |
|
fpgal
New Member
93 Posts |
Posted - 15 August 2001 : 02:35:40
|
Hi,
I'd really like to get this mod but the link isn't working. Does anyone know one that does work?
Thanks
|
|
|
Topic |
|