Skip to content

Listing USS entries does not include timestamp in lastModified property #112

Description

@t1m0thyj

When I issue the ls command over an FTP terminal session, the Last Modified time is displayed in the format MMM DD hh:mm.

I would expect listing USS entries with zos-node-accessor to provide the same level of granularity, but only year/month/day are set and the timestamp is missing:

if (fields[7].indexOf(':') === -1) {
const year = parseInt(fields[7], 10);
const month = monthText.indexOf(fields[5]);
const date = parseInt(fields[6], 10);
// May 8 2017
entry.lastModified = new Date(year, month, date);
} else {
// Oct 2 09:48
const now = new Date();
const month = monthText.indexOf(fields[5]);
const date = parseInt(fields[6], 10);
entry.lastModified = new Date(now.getFullYear(), month, date);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions