BUG: ifDeviceInfo.GetClockFormat() returns String

I’m running OS 9.1 and getting the following:

Brightscript Debugger> ? CreateObject("roDeviceInfo").getClockFormat()
12h

Brightscript Debugger> ? type(CreateObject("roDeviceInfo").getClockFormat())
String

The documentation states that this should be an Integer: either 0 or 1.

Has this function always returned a String or must we handle both return types?

It has always returned a string: “12h”, “24h”, or “” (hypothetical in case of other/error). The documentation was apparently not written to match the implementation due to some mixup.