Specials | Announcements | Contact | Site Map
Willmaster.com
Hijack-proof forms. Surveys. List building.

Solid, safe website tools.

Whatever your need, Will Bontrager builds powerful software solutions.

Affiliate Cookie Setter
Search WillMaster.com:

WillMaster > Support > CGI Q&A

If you don't find the answer to your question in these archives, ask your CGI question at the Current Master Series CGI Forum.

Adjustment of Local Time (India) Adjust in MasterDailyContent?

Author Message
7Sep03

Manohar
Subject: Adjustment of Local Time (India) Adjust in MasterDailyContent?

Please tell me how can I adjust the Real Time (the Local Time, India) with the script MasterDailyContent, which display the right Date wise contents.

8Sep03

Will

[Email]

In response to: Adjustment of Local Time (India) Adjust in MasterDailyContent?

Master Daily Content determines which content to display according to the clock on the server. When your server is not in your time zone (or if the server's clock is incorrectly set), you can adjust the time Master Daily Content works with.

At line 174, you'll see this line:

my ($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$isdst) = localtime;
Replace that line with these two lines:
my $t = time +3600;
my ($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$isdst) = localtime $t;
Adjust the time shift by replacing
+3600
with the correct number of seconds, plus or minus, for the amount of shift you require.

8Sep03

Manohar
In response to: Adjustment of Local Time (India) Adjust in MasterDailyContent?

Thank You Very Much WILL !!

I got the result only because of you.
I am grateful.
Thanks Again!!
Manohar