Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
tvkrnsky
Level 7

BUG: ifDeviceInfo.GetClockFormat() returns String

Jump to solution

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?

 

0 Kudos
1 Solution

Accepted Solutions
Roku Employee
Roku Employee

Re: BUG: ifDeviceInfo.GetClockFormat() returns String

Jump to solution
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.

View solution in original post

1 Reply
Roku Employee
Roku Employee

Re: BUG: ifDeviceInfo.GetClockFormat() returns String

Jump to solution
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.

View solution in original post