summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJochen Hoenicke <jochen@gnu.org>1999-12-30 17:08:59 +0000
committerJochen Hoenicke <jochen@gnu.org>1999-12-30 17:08:59 +0000
commitc34496ae620cf1bdaa50a29b5701bca0e889779a (patch)
tree7165408b2f8687aaece77458204af15d955398db /scripts
parente572cd582a762ad297302f85ee9904aa6df01ed9 (diff)
downloadclasspath-c34496ae620cf1bdaa50a29b5701bca0e889779a.tar.gz
fixed a off by one error in month length lookup.
This affected only the America/Godthab timezone.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/timezones.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/timezones.pl b/scripts/timezones.pl
index aa63fbdd2..72f7d0752 100755
--- a/scripts/timezones.pl
+++ b/scripts/timezones.pl
@@ -104,7 +104,7 @@ sub parseDay($$$) {
} elsif ($day =~ /^last([A-Z][a-z][a-z])$/) {
my $weekday = ( parseWeekday($1) + $dayoffset + 7 ) % 7;
if ($dayoffset) {
- my $day = $daysInMonths[$month] + $dayoffset;
+ my $day = $daysInMonths[$month - 1] + $dayoffset;
warn "Can only approximate $day with dayoffset in $file"
if ($month == 2);
return "$day, -$weekdayjavanames[$weekday]";