| View previous topic :: View next topic |
| Author |
Message |
zman1365
Joined: 21 Feb 2006 Posts: 2
|
Posted: Tue Feb 21, 2006 Post subject: plans_time_adjust.pl |
|
|
Having problems running this script (yes I added a bunch of events PRIOR to setting the timezones - read the doc)
I am getting a 500 error. Script seems fine and the permissions are 755.
Any thoughts? |
|
| Back to top |
|
 |
daltonlp Site Admin
Joined: 24 Nov 2003 Posts: 1499
|
Posted: Tue Feb 21, 2006 Post subject: |
|
|
You can't run it through your browser - it's just a command-line script.
It just prints out plain text, without an http response header. That's why you see the 500 server error.
- Lloyd |
|
| Back to top |
|
 |
zman1365
Joined: 21 Feb 2006 Posts: 2
|
Posted: Fri Feb 24, 2006 Post subject: Again |
|
|
OK - got it to run
The end of the processing loop is
| Code: |
$events{$event_id}{start} += 3600*$adjust_hours;
$events{$event_id}{end} += 3600*$adjust_hours;
}
&update_event($event_id); |
should id be
| Code: | $events{$event_id}{start} += 3600*$adjust_hours;
$events{$event_id}{end} += 3600*$adjust_hours;
&update_event($event_id);} |
note the &update_event is moved
I am proficient in many prog. languages - PERL is NOT one of them
Thanks for a great script |
|
| Back to top |
|
 |
|