Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tvkrnsky
Channel Surfer

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
RokuKC
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 1
RokuKC
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.