Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
3092eeb3
Commit
3092eeb3
authored
Jul 16, 2021
by
Volker Krause
Browse files
Fix checks for non-set date/time values
parent
47274e1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/app/HealthCertificateRecovery.qml
View file @
3092eeb3
...
...
@@ -38,7 +38,7 @@ ColumnLayout {
}
QQC2.Label
{
text
:
certificate
.
dateOfBirth
.
toLocaleDateString
(
Qt
.
locale
(),
Locale
.
ShortFormat
)
visible
:
certificate
.
dateOfBirth
.
getTime
()
!=
0
visible
:
!
isNaN
(
certificate
.
dateOfBirth
.
getTime
()
)
Kirigami.FormData.label
:
i18n
(
"
Date of birth:
"
)
}
...
...
@@ -85,7 +85,7 @@ ColumnLayout {
QQC2.Label
{
text
:
certificate
.
certificateExpiryDate
.
toLocaleString
(
Qt
.
locale
(),
Locale
.
ShortFormat
)
Kirigami.FormData.label
:
i18n
(
"
Expires:
"
)
visible
:
certificate
.
certificateExpiryDate
.
getTime
()
!=
0
visible
:
!
isNaN
(
certificate
.
certificateExpiryDate
.
getTime
()
)
}
Kirigami.Icon
{
source
:
{
...
...
src/app/HealthCertificateTest.qml
View file @
3092eeb3
...
...
@@ -38,7 +38,7 @@ ColumnLayout {
}
QQC2.Label
{
text
:
certificate
.
dateOfBirth
.
toLocaleDateString
(
Qt
.
locale
(),
Locale
.
ShortFormat
)
visible
:
certificate
.
dateOfBirth
.
getTime
()
!=
0
visible
:
!
isNaN
(
certificate
.
dateOfBirth
.
getTime
()
)
Kirigami.FormData.label
:
i18n
(
"
Date of birth:
"
)
}
...
...
@@ -103,7 +103,7 @@ ColumnLayout {
QQC2.Label
{
text
:
certificate
.
certificateExpiryDate
.
toLocaleString
(
Qt
.
locale
(),
Locale
.
ShortFormat
)
Kirigami.FormData.label
:
i18n
(
"
Expires:
"
)
visible
:
certificate
.
certificateExpiryDate
.
getTime
()
!=
0
visible
:
!
isNaN
(
certificate
.
certificateExpiryDate
.
getTime
()
)
}
Kirigami.Icon
{
source
:
{
...
...
src/app/HealthCertificateVaccination.qml
View file @
3092eeb3
...
...
@@ -38,7 +38,7 @@ ColumnLayout {
}
QQC2.Label
{
text
:
certificate
.
dateOfBirth
.
toLocaleDateString
(
Qt
.
locale
(),
Locale
.
ShortFormat
)
visible
:
certificate
.
dateOfBirth
.
getTime
()
!=
0
visible
:
!
isNaN
(
certificate
.
dateOfBirth
.
getTime
()
)
Kirigami.FormData.label
:
i18n
(
"
Date of birth:
"
)
}
...
...
@@ -102,7 +102,7 @@ ColumnLayout {
QQC2.Label
{
text
:
certificate
.
certificateExpiryDate
.
toLocaleString
(
Qt
.
locale
(),
Locale
.
ShortFormat
)
Kirigami.FormData.label
:
i18n
(
"
Expires:
"
)
visible
:
certificate
.
certificateExpiryDate
.
getTime
()
!=
0
visible
:
!
isNaN
(
certificate
.
certificateExpiryDate
.
getTime
()
)
}
Kirigami.Icon
{
source
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment