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: 
marcelo_cabral
Roku Guru

BrightScript DateTime localization

I'm using BrS localization for the first time on a channel and notice some inconsistencies on how the SDK handles date/time localization.
At https://sdkdocs.roku.com/display/sdkdoc/ifDateTime we have the following:
Note that day names, month names, separators, and order of fields may vary depending on the current locale.The order of the fields in both short-date formats is changed depending on the current locale:
Canada: YYYY/MM/DD
United States: MM/DD/YY
UK and rest of world: DD/MM/YY


What I found inconsistent is that this only applies for "short-date", when we convert dates for long date formats the SDK uses the (illogic) MDY format used here in USA.
Another thing I don't understand why was not exposed on the API are the methods GetMonthName() and GetDayofWeekName() to get the localized strings.
0 Kudos