Bugzilla – Attachment 34979 Details for
Bug 11120
The date option for the overdue_notices cronjob is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11120: Follow-up: adding a hint about the date format
Bug-11120-Follow-up-adding-a-hint-about-the-date-f.patch (text/plain), 1.30 KB, created by
Jonathan Druart
on 2015-01-06 13:48:03 UTC
(
hide
)
Description:
Bug 11120: Follow-up: adding a hint about the date format
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-01-06 13:48:03 UTC
Size:
1.30 KB
patch
obsolete
>From 1917015fc1845d49605d965a1f9798cf5b835276 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 5 Jan 2015 23:05:27 +0100 >Subject: [PATCH] Bug 11120: Follow-up: adding a hint about the date format > >Adding 2 hints about the expected date format to the error >message and the help. > >To test: >- Run overdue_notices.pl --date <someinvaliddate> >- Run overdue_notices.pl -man >- Verify hint about date format shows up >--- > misc/cronjobs/overdue_notices.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index f7f8a9c..2023c56 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -168,7 +168,7 @@ Choose list-all to include all overdue items in the list (limited by B<-max> set > > =item B<-date> > >-use it in order to send overdues on a specific date and not Now. >+use it in order to send overdues on a specific date and not Now. Format: YYYY-MM-DD. > > =item B<-email> > >@@ -364,7 +364,7 @@ if ( $date_input ){ > eval { > $date_to_run = dt_from_string( $date_input ); > }; >- die "$date_input is not a valid date, aborting!" >+ die "$date_input is not a valid date, aborting! Use a date in format YYYY-MM-DD." > if $@ or not $date_to_run; > > } >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11120
:
22304
|
29465
|
33929
|
34952
|
34953
|
34962
|
34963
|
34979
|
34980
|
34981
|
36282
|
36283
|
36284