Commit 936c7ad
committed
Allow using plain() on unsaved dates in HTML forms
copy_url and history want to display the local time of DateHTMLProperty values,
using the plain() method. When the value has not been saved (e.g. when saving
was not possibile due to an error in a different entry field), it is just a
string, so it does not have a local() method.1 parent 9cc2ed5 commit 936c7ad
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1704 | 1704 | | |
1705 | 1705 | | |
1706 | 1706 | | |
1707 | | - | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
1708 | 1712 | | |
1709 | 1713 | | |
1710 | 1714 | | |
| |||
0 commit comments