Make a few smaller changes to the db generation. Still not properly functional
This commit is contained in:
parent
95c44085d9
commit
b97f2432ce
2 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@ TZ_FILES=$(addprefix $(TZDIR)/, africa antarctica asia australasia backward etce
|
||||||
|
|
||||||
tzout: DATE := $(shell date +%F)
|
tzout: DATE := $(shell date +%F)
|
||||||
tzout: $(TZ_FILES)
|
tzout: $(TZ_FILES)
|
||||||
TZ_VERSION=`perl -n -e 'm/^VERSION\s*=\s*(\S+)/ and print $$1;' $(TZDIR)/Makefile`; \
|
TZ_VERSION=`cat $(TZDIR)/version`; \
|
||||||
./tz-erl --version $$TZ_VERSION --date $(DATE) -o $@ $^
|
./tz-erl --version $$TZ_VERSION --date $(DATE) -o $@ $^
|
||||||
|
|
||||||
$(TZ_FILES): $(TZDIR)
|
$(TZ_FILES): $(TZDIR)
|
||||||
|
|
|
@ -522,6 +522,9 @@ sub last_active_epoch {
|
||||||
|
|
||||||
my $day = on_to_day_of_month($on, $year, $month);
|
my $day = on_to_day_of_month($on, $year, $month);
|
||||||
print "On=$on, Year=$year, Month=$month ====> Day=$day\n";
|
print "On=$on, Year=$year, Month=$month ====> Day=$day\n";
|
||||||
return timelocal_nocheck(0, 0, 0, $day, $month, $year);
|
## changing the below call to timelocal_nocheck stops the crash, but it feels wrong
|
||||||
|
## especially since without it, it seems to produce a lot of "redundant" error messages
|
||||||
|
## I don't have time to explore this now, but I'll come back to it
|
||||||
|
return timelocal(0, 0, 0, $day, $month, $year);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue