bugfindutils - Bugs: bug #44569, find newermt issues impenetrable...

 
 

bug #44569: find newermt issues impenetrable diagnostic for ambiguous dates

Submitted by:  Andrey Oliveira <andreyoliveira>
Submitted on:  Wed 18 Mar 2015 02:04:33 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Invalid
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.5.14Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 28 Mar 2015 10:23:33 PM UTC, comment #2:

While the date/time may indeed be ambiguous, this is a poor quality error message. I would hope that can be more helpful to the user. I will change the summary.

James Youngman <jay>
Project Administrator
Wed 18 Mar 2015 02:22:22 PM UTC, comment #1:

This is not a bug in find.

https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e

The find command shares the same date parser as used in coreutils' date(1) - and that parser honors daylight savings rules of your current locale. As you apparently live in a locale where that specific date in October has no midnight (jumping straight from 23:59 on the previous day to 1:00 on that day), then the date you have specified really is bogus. Try specifying a time that includes a safer hour, such as noon, that is unlikely to not exist due to daylight savings jumps, or try using TZ=UTC to force a time zone that doesn't have daylight savings issues.

Eric Blake <ericb>
Project Administrator
Wed 18 Mar 2015 02:04:33 PM UTC, original submission:

The "find" has problems to work with some dates. Apparently one day in October every year.

Ex:

Command: find -maxdepth 1 -type f -newermt 2014-10-19

Result: find: I cannot figure out how to interpret '2014-10-19' as a date or time

Dates that have problems:

2011-10-16
2012-10-21
2013-10-20
2014-10-19
2015-10-18
2016-10-16

All other dates in the year has no problems.

Tested in Ubuntu, Slackware and Debian with findutils version in lastest stable packages, tested findutils 4.4.2 tarball and lastest 4.5.15-git from your git repository. All had the same problem.

Andrey Oliveira <andreyoliveira>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #33388:  findbug.png added by andreyoliveira (94KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by ericb (Posted a comment)
  • -unavailable- added by andreyoliveira (Submitted the item)
  • -unavailable- added by andreyoliveira
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 28 Mar 2015 10:23:56 PM UTCjaySummaryfind newermt cannot figure out how to interpret some dates. =>find newermt issues impenetrable diagnostic for ambiguous dates
    Wed 18 Mar 2015 02:22:22 PM UTCericbStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Wed 18 Mar 2015 02:04:33 PM UTCandreyoliveiraAttached File-=>Added findbug.png, #33388
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1