Created attachment 1169137 [details] ls -l /dev/disk/by-uuid (f24 beta) Description of problem: The time has been replaced by 2016 (the year) with older betas, the time was listed has hh:mm Refer to two listings attached. Version-Release number of selected component (if applicable): Three listings F24 beta (from koji) f24 gold (from koji) F23 (from f23 gold) How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 1169138 [details] ls -l /dev/disk/by-uuid (f24 gold) Check out the column for time
Created attachment 1169139 [details] ls -l /dev/disk/by-uuid (f23) F23 and F24 beta listings and centos are identical in format
Please note. On the day Fedora is installed the hhmm field (see attachments) is shown as 2016 The day after the install date year field is replaced by HH:MM I was parsing the above listings and searching for HH:MM I have since changed my parser program. This bug is for me a very low priority.
Please attach the output of 'date' on the system in question. I suspect this is shown because date/time is not set properly. The info documentation for ls says: By default, file timestamps are listed in abbreviated form, using a date like ‘Mar 30 2002’ for non-recent timestamps, and a date-without-year and time like ‘Mar 30 23:45’ for recent timestamps. This format can change depending on the current locale as detailed below.
(In reply to Leslie Satenstein from comment #3) > I was parsing the above listings and searching for HH:MM Please consider using the --time-style option of ls if you intend to parse the output.
Today 9am I installed F24 (using june14 version). Yes, the date was correct, (today), and the hh:mm was replaced by yyyy. My software was looking for hh:mm. As you note, attachment 2 [details] is what is produced. As I stated in comment 3, I revised my software so that any date format is acceptable to my stuff. As you say, the ls -l /dev/disk/by-uuid can have multiple formats, my parser has been revised to accept any date format. I was expecting the "ls -l /dev/disk/by-uuid" format to be invariant. You have pointed out that it is not a bug! Even if the creation timestamp was an hour earlier. You may close this issue as not-a-bug Thank you for the prompt followup.
Thanks for clarifying it! Closing...
*** Bug 1370362 has been marked as a duplicate of this bug. ***
Please keep as closed I was using region as Canada English (which also formats the date differently) The following code fragment may help anyone wanting to extract the UUID if the line is with the date formats listed as attachments. I put it here in case someone encounters a different date format ... #include <string.h> .... char *extract_field(char *fstabline) { char *cp=strstr(fstabline," ->"); /* at end of desired field*/ if(cp) { *cp-- = '\0'; while(*cp!=' ' && *cp) /*backup to opening char */ cp--; cp++; } return cp; }