summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/data/qgmonthday.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/data/qgmonthday.cpp')
-rw-r--r--src/xmlpatterns/data/qgmonthday.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/data/qgmonthday.cpp b/src/xmlpatterns/data/qgmonthday.cpp
index c2bba53..daee4d4 100644
--- a/src/xmlpatterns/data/qgmonthday.cpp
+++ b/src/xmlpatterns/data/qgmonthday.cpp
@@ -77,7 +77,7 @@ GMonthDay::Ptr GMonthDay::fromLexical(const QString &lexical)
GMonthDay::Ptr GMonthDay::fromDateTime(const QDateTime &dt)
{
- QDateTime result(QDate(DefaultYear, dt.date().month(), dt.date().day()));
+ QDateTime result(QDate(DefaultYear, dt.date().month(), dt.date().day()).startOfDay());
copyTimeSpec(dt, result);
return GMonthDay::Ptr(new GMonthDay(result));