Aslain 403 Posted April 19, 2017 I will also steal this topic, to display AM/PM, is this enough: {{py:xvm.formatDate('%I:%M %p')}} ? It wasn't working to me, displays 04 instead of 16 for hours, but no AM/PM. Do I need to have my windows locales set to different time either? Quote Share this post Link to post Short link Share on other sites
scyorkie 50 #386641 Posted April 22, 2017 That line above works for me, although I'm using a slightly different one currently. See here. Quote Share this post Link to post Short link Share on other sites
Aslain 403 #386669 Posted April 23, 2017 (edited) This screen is when I replace default config with this: "format": "<font face='$FieldFont'><textformat leading='-38'><font size='36'>{{py:xvm.formatDate('%I:%M %p')}}</font><br></textformat><textformat rightMargin='85' leading='-2'>{{py:xvm.formatDate('%Au')}}<br><font size='15'>{{py:xvm.formatDate('%d %bu %Y')}}</font></textformat></font>" Changing the width to 400 does not helping too. Edited April 23, 2017 by Aslain Quote Share this post Link to post Short link Share on other sites
tricsi 1,144 #386678 Posted April 23, 2017 {{py:xvm.formatDate('%I:%M %p')}} nb7428 NA 13:37 мск Quote Share this post Link to post Short link Share on other sites
ktulho 5,791 #386681 Posted April 23, 2017 1 Quote Share this post Link to post Short link Share on other sites
tricsi 1,144 #386682 Posted April 23, 2017 судя по его скринам, у него что-то не хорошо там у меня и дефолт и его правка в дефолте отображает Quote Share this post Link to post Short link Share on other sites
ktulho 5,791 #386684 Posted April 23, 2017 судя по его скринам, у него что-то не хорошо там у меня и дефолт и его правка в дефолте отображает Я так понимаю проблема в том, что не отображается AM/PM. Quote Share this post Link to post Short link Share on other sites
tricsi 1,144 #386685 Posted April 23, 2017 (edited) Я так понимаю проблема в том, что не отображается AM/PM. сам значок ладно...а сами часы где ? по дефолту на первом скрине ? я так понял поддержки нет, чтобы в настройки AM/PM не лезть.. This screen is when I replace default config with this: "format": "<font face='$FieldFont'><textformat leading='-38'><font size='36'>{{py:xvm.formatDate('%I:%M %p')}}</font><br></textformat><textformat rightMargin='85' leading='-2'>{{py:xvm.formatDate('%Au')}}<br><font size='15'>{{py:xvm.formatDate('%d %bu %Y')}}</font></textformat></font>" Changing the width to 400 does not helping too. Скриншот 23-04-2017 143317.png ....... NA 19:25 мск widgetsTemplates.xc Edited April 23, 2017 by tricsi Quote Share this post Link to post Short link Share on other sites