diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/date-next-dow | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/misc/date-next-dow b/tests/misc/date-next-dow index 0bc94e17d..0809c65d0 100755 --- a/tests/misc/date-next-dow +++ b/tests/misc/date-next-dow @@ -41,9 +41,10 @@ my @Tests = # Running "date -d mon +%a" on a Monday must print Mon. ['dow', "-d $wday_str +%a", {OUT => ucfirst $wday_str}], # It had better be the same date, too. - ['dow2', "-d $wday_str +%F", {OUT => strftime("%F", @d)}], + ['dow2', "-d $wday_str +%Y-%m-%d", {OUT => strftime("%Y-%m-%d", @d)}], - ['next-dow', "-d 'next $wday_str' +%F", {OUT => strftime("%F", @d_week)}], + ['next-dow', "-d 'next $wday_str' +%Y-%m-%d", + {OUT => strftime("%Y-%m-%d", @d_week)}], ); # Append "\n" to each OUT=> RHS if the expected exit value is either |