Skip to content

Commit

Permalink
Merge pull request #374 from ivanteoh/github-main
Browse files Browse the repository at this point in the history
Show the date and time edit fields when the date time format contains %I or %y.
  • Loading branch information
ebrehault committed Jul 29, 2013
2 parents f894839 + bc294e2 commit d9b8a74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
defaultformat python:db.getDateTimeFormat();
fieldformat python:options['field'].getSettings('format');
format python:test(not(fieldformat),defaultformat,fieldformat);
hm python:('%H' in format);
ymd python:('%Y' in format)">
hm python:('%H' in format or '%I' in format);
ymd python:('%Y' in format or '%y' in format)">

<tal:block tal:condition="python:test(v)">
<span>
Expand Down

0 comments on commit d9b8a74

Please sign in to comment.