Bugzilla – Attachment 36283 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.37 KB, created by
Brendan Gallagher
on 2015-03-02 11:40:35 UTC
(
hide
)
Description:
Bug 11120: Follow-up: adding a hint about the date format
Filename:
MIME Type:
Creator:
Brendan Gallagher
Created:
2015-03-02 11:40:35 UTC
Size:
1.37 KB
patch
obsolete
>From 3dc888af6c0016e4d0e283f60cb1dfe939aafb93 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 > >Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com> >--- > 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 95d04b1..c9c2d69 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; > > } >-- >1.7.10.4
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