The LunaEvent class treats quantities of 0 as a value to set. To workaround this, the quantity index needs to start at >0.
LocaleData.getMeasurementSystem is available at API level 28 but the app supports API level 21.