summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/efa2
-rw-r--r--test/50-efa.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/efa b/bin/efa
index 4c4702f..87e7047 100755
--- a/bin/efa
+++ b/bin/efa
@@ -292,7 +292,7 @@ if ($time) {
}
if ($date) {
if ($date !~ /^ [0-3]? \d \. [01]? \d \. (?: \d{4} )? $/x) {
- die("Invalid argument: Usage: --date DD.MM[.YYYY]\n");
+ die("Invalid argument: Usage: --date DD.MM.[YYYY]\n");
}
@post{'itdDateDay', 'itdDateMonth', 'itdDateYear'} = split(/\./, $date);
$post{itdDateYear} //= (localtime(time))[5] + 1900;
diff --git a/test/50-efa.t b/test/50-efa.t
index a47f9a0..fa38572 100644
--- a/test/50-efa.t
+++ b/test/50-efa.t
@@ -15,7 +15,7 @@ my $err_exclude = "Invalid argument. See manpage for --exclude usage\n";
my $err_prefer = "Invalid argument. Usage: --prefer speed|nowait|nowalk\n";
my $err_include = "Invalid argument. Usage: --include local|ic|ice\n";
my $err_time = "Invalid argument. Usage: --time HH:MM\n";
-my $err_date = "Invalid argument: Usage: --date DD.MM[.YYYY]\n";
+my $err_date = "Invalid argument: Usage: --date DD.MM.[YYYY]\n";
my $err_walk_speed
= "Invalid argument. Uaseg: --walk-speed normal|fast|slow\n";