Bug 6029 - Date processing not done to all dates in overdue mails
Summary: Date processing not done to all dates in overdue mails
Status: RESOLVED DUPLICATE of bug 11244
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: 3.4
Hardware: All All
: PATCH-Sent (DO NOT USE) enhancement (vote)
Assignee: Stéphane Delaune
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks: 5992
  Show dependency treegraph
 
Reported: 2011-03-31 21:56 UTC by Chris Cormack
Modified: 2014-11-21 06:54 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Proposed Patch (1.44 KB, patch)
2011-03-31 21:57 UTC, Chris Cormack
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2011-03-31 21:56:17 UTC

    
Comment 1 Chris Cormack 2011-03-31 21:57:25 UTC
Created attachment 3594 [details] [review]
Proposed Patch
Comment 2 Katrin Fischer 2011-07-17 22:06:55 UTC
I tested this with following ODUE template:

copyrightdate <<biblio.copyrightdate>>
datecreated <<biblio.datecreated>>
publicationyear <<biblioitems.publicationyear>>

itemscontent
<<items.content>>

./misc/cronjobs/overdue_notices.pl -v -itemscontent dateaccessioned, replacementpricedate, datelastborrowed, datelastseen, onloan

Result:
Illegal Date '1990-09-23' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2020-12-31' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '1958-05-30' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Use of uninitialized value $fine in string at ./misc/cronjobs/overdue_notices.pl line 676.
Illegal Date '1973' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534
Illegal Date '2011-07-17' does not match 'us' format: mm/dd/yyyy at /home/katrin/kohaclone/C4/Letters.pm line 534

Message created:
copyrightdate 

datecreated 

publicationyear 



itemscontent

07/17/2011

For comparison, output BEFORE applying patch:
copyrightdate 1973

datecreated 2011-07-17

publicationyear 



itemscontent

07/17/2011
Comment 3 Katrin Fischer 2014-11-21 06:54:35 UTC

*** This bug has been marked as a duplicate of bug 11244 ***