Closed jsmreese closed 6 years ago
Verified that issue is present on a physical HTC One device.
equal(moment.duration(10, "seconds").format("h[h] m[m] s[s]",
{
useSignificantDigits: true,
trim: false
}), "0h 0m 10s"); // Passes on HTC One
equal(moment.duration(10, "seconds").format("h[h] m[m] s[s]",
{
useSignificantDigits: true,
precision: 4,
trim: false
}), "0h 0m 10s"); // Fails on HTC One
When using significant digits and
moment.duration.format
, tokens that have zero value are rendered as0.0
instead of0
.This occurs on the HTC One emulator on BrowserStack, Android 4.4. I've not yet tested on an actual HTC device.