Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localized date/time placeholders produce unexpected results. #45

Open
AnrDaemon opened this issue May 12, 2015 · 0 comments
Open

Localized date/time placeholders produce unexpected results. #45

AnrDaemon opened this issue May 12, 2015 · 0 comments

Comments

@AnrDaemon
Copy link
Collaborator

Example code:

*nLabel Clock

Clock
{
  AlwaysOnTop True
  X 50
  Y 50
  Width 150
  Height 30

  Font
  {
    Size 14
    Color #c1c1c1
  }

  Text
  {
    - "[Time('%c')]"
    Align center
    VerticalAlign Middle
  }
}

The output is "mm/dd/yy HH:mm:ss" regardless of locale.
Just for tests, I set time to "hh:mm:ss tt" but the label still show 24-h format.

@AnrDaemon AnrDaemon changed the title Localized date/time placeholders produce US formatted results. Localized date/time placeholders produce unexpected formatted results. May 12, 2015
@AnrDaemon AnrDaemon changed the title Localized date/time placeholders produce unexpected formatted results. Localized date/time placeholders produce unexpected results. May 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant