os.date() formatting doesn't use current locale settings

Using os.date("%x") or os.date("%X") should format the time or date using the current locale settings.

I’m testing on iOS and it doesn’t matter what country or date/time settings I set on the device. It always produces a date in the “mm/dd/yy” format and “HH:MM:ss” 24-hour time format.

Known bug?


OSX 10.10.2

Xcode 6.1.1

Corona SDK 2015.2546 (Pro)

Tested on iPod Touch 5th gen. iOS 8.1.3

Reported as case 38707

Out of curiosity, what happens if you just use “%c” (or no arguments at all, which is the same thing) ? I know that returns both date and time (which could theoretically be parsed), but I’m mostly curious if the results vary at all.

Brent

Nope “%c” makes no difference. If you have access to the bug reports you can check it out.
I’ve included %c %x and %X in the sample project.

Reported as case 38707

Out of curiosity, what happens if you just use “%c” (or no arguments at all, which is the same thing) ? I know that returns both date and time (which could theoretically be parsed), but I’m mostly curious if the results vary at all.

Brent

Nope “%c” makes no difference. If you have access to the bug reports you can check it out.
I’ve included %c %x and %X in the sample project.