Use hourNo0 in formatting

by David Storey

JavaScript

var timeFormat = new Intl.DateTimeFormat("en-GB", {
    hour: "numeric",
    minute: "numeric",
    second: "numeric",
    hour12: "true",
    hourNo0: "true"
});

console.clear();
console.dirxml(timeFormat.resolvedOptions());
console.log(timeFormat.resolvedOptions().hourNo0);

if (timeFormat.resolvedOptions().hourNo0 === undefined) {
    console.log("hourNo0 is undefined");
}