From 4683eebc624a8a1be89d6216a3f39b35a8bce943 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 May 2009 15:54:40 +0200 Subject: efa: --date: Make the year optional --- bin/efa | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/efa b/bin/efa index 8af3568..93c1d9c 100755 --- a/bin/efa +++ b/bin/efa @@ -192,6 +192,7 @@ if ($time) { } if ($date) { @post{'itdDateDay','itdDateMonth','itdDateYear'} = split(/\./, $date); + $post{itdDateYear} //= (localtime(time))[5] + 1900; } if (@exclude) { @@ -358,7 +359,7 @@ Journey start time Journey end time (overrides --time/--depart) -=item B<--date> I
.I.I +=item B<--date> I
.I.[I] Journey date -- cgit v1.2.3