There are two issues:
- QDate::fromJulianDay and QDateTime::toSecsSinceEpoch are static functions which return the result value, so the calls in the code are effectively no-op, so the merged value is replaced with a default-initialized value.
- It doesn't make sense to add two absolute time values together (what meaningful result would we get by adding the dates of today and tomorrow?)