Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 strForumTimeAdjust
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 09 March 2001 :  17:35:03  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Where is this function/variable? I looked in inc_functions but i couldnt find it.

----------------
Da_Stimulator
Need a Mod?
My Snitz Test Center

gor
Retired Admin

Netherlands
5511 Posts

Posted - 09 March 2001 :  17:38:23  Show Profile  Visit gor's Homepage
It is in config.asp, line 500+

strForumTimeAdjust = DateAdd("h", strTimeAdjust , Now())


Pierre
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 09 March 2001 :  17:39:31  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
thx Gor

----------------
Da_Stimulator
Need a Mod?
My Snitz Test Center
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 09 March 2001 :  18:46:51  Show Profile  Visit gor's Homepage
You're welcome

I think this isn't used much btw, strForumTimeAdjust allows you to adjust the time on the server to your own timezone. So that to you as admin, even if the server itself is in a different timezone, it looks like the server is in the same timezone.
(or is this a very much used thing ?)


Pierre
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 09 March 2001 :  18:53:42  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Here is how strForumTimeAdjust is being used in the files.....


Searching for: strForumTimeAdjust
active.asp(50): Response.Cookies(strCookieURL & "Reload").expires = strForumTimeAdjust + 365
active.asp(71): lastDate = DateToStr(DateAdd("h",-1,strForumTimeAdjust))
active.asp(73): lastDate = DateToStr(DateAdd("d",-1,strForumTimeAdjust))
active.asp(75): lastDate = DateToStr(DateAdd("ww",-1,strForumTimeAdjust))
active.asp(77): lastDate = DateToStr(DateAdd("m",-1,strForumTimeAdjust))
config.asp(69): dim strDateType, strTimeAdjust, strTimeType, strForumTimeAdjust
config.asp(501): strForumTimeAdjust = DateAdd("h", strTimeAdjust , Now())
forum.asp(60): Response.Cookies(strCookieURL & "NumDays").expires = strForumTimeAdjust + 365
forum.asp(69): defDate = DateToStr(dateadd("d", -(nDays), StrToDate(strForumTimeAdjust)))
inc_functions.asp(606): StrToDate = "" & strForumTimeAdjust
inc_functions.asp(627): TempLastHereDate = DateAdd("d",-10,strForumTimeAdjust)
inc_functions.asp(631): TempLastHereDate = DateAdd("d",-10,strForumTimeAdjust)
inc_functions.asp(640): strSql = strSql & " SET M_LASTHEREDATE = '" & DateToStr(strForumTimeAdjust) & "'"
inc_functions.asp(983): strSql = strSql & " SET M_LASTPOSTDATE = '" & DateToStr(strForumTimeAdjust) & "' "
inc_functions.asp(1186): Response.Cookies(strUniqueID & "User").Expires = dateAdd("d", 30, strForumTimeAdjust)
inc_functions.asp(1330): Response.Cookies(strUniqueID & "User").Expires = dateAdd("d", 30, strForumTimeAdjust)
inc_functions.asp(1343): 'Response.Cookies(strUniqueID & "User").Expires = dateadd("d", -2, strForumTimeAdjust)
pop_profile.asp(192): strStartDate = DateToStr(dateadd("d", -30, strForumTimeAdjust))
post_info.asp(92): txtMessage = txtMessage & ChkString(STRdbntUserName, "display") & " on " & ChkDate(DateToStr(strForumTimeAdjust)) & " " & ChkTime(DateToStr(strForumTimeAdjust))
post_info.asp(113): strSql = strSql & " SET F_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(121): strSql = strSql & " SET T_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(142): strSql = strSql & " SET T_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(225): txtMessage = txtMessage & Chkstring(STRdbntUserName, "display") & " on " & ChkDate(DateToStr(strForumTimeAdjust)) & " " & ChkTime(DateToStr(strForumTimeAdjust))
post_info.asp(460): strSql = strSql & ", '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(462): strSql = strSql & ", '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(483): strSql = strSql & " SET F_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(569): strSql = strSql & ", " & "'" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(581): strSql = strSql & " SET T_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(593): strSql = strSql & " SET F_LAST_POST = '" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(690): strSql = strSql & ", " & "'" & DateToStr(strForumTimeAdjust) & "'"
post_info.asp(797): strSql = strSql & ", " & "'" & DateToStr(strForumTimeAdjust) & "'"
register.asp(201): strSql = strSql & ", " & "'" & DateToStr(strForumTimeAdjust) & "'"
register.asp(209): strSql = strSql & ", " & "'" & DateToStr(strForumTimeAdjust) & "'"
search.asp(111): strSql = strSql & " AND (T_DATE > '" & DateToStr(dateadd("d", -dt, strForumTimeAdjust)) & "')"
Found 34 occurrence(s) in 8 file(s)


Brad
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 09 March 2001 :  19:00:49  Show Profile  Visit gor's Homepage
Thanks Brad, I knew it was often referred to, but was just wondering if anybody ever set the TimeAdjust to > 0

Pierre
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 09 March 2001 :  19:01:28  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I know how its used, i was just curious as to how it worked, so i wanted to peak at the code.

----------------
Da_Stimulator
Need a Mod?
My Snitz Test Center
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 09 March 2001 :  19:05:27  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
oh sorry gor i was wondering why you didnt know how much it had been used since your like a long time Snitzer

I dont use it, but im sure someone MIGHT use it. The reason I dont use it, is because people visit my site from all over the world so why would it matter if it was set to my local time when its not their local time. But thats just my 2 cents

Brad
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 09 March 2001 :  19:17:43  Show Profile
I use it!!!
My server time is always an hour off from my time. And I want it set to my time so I can see at exactly what time each posts were made, instead of calculating the different time zones and add 1 or minus one to my time, or how many hours away from the GMT...gaaaaaa!!!!

So I use it.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07