Skip to content

Use native Date.prototype.toISOString() if it's available #108

@RA80533

Description

@RA80533

next_child.ele('date').txt(ISODateString(new Date(next)));

if (typeof Date.prototype.toISOString === "function") {
    next_child.ele('date').txt(new Date(next).toISOString());
} else {
    next_child.ele('date').txt(toISOString(new Date(next));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions