this should use units/calendar from the encoding (I can make that change as part of https://github.com/akleeman/xray/pull/21