Ticket #10995: mythshutdown-utc-fix.patch

File mythshutdown-utc-fix.patch, 778 bytes (added by anonymous, 12 years ago)
  • mythtv/programs/mythshutdown/main.cpp

    diff --git a/mythtv/programs/mythshutdown/main.cpp b/mythtv/programs/mythshutdown/main.cpp
    index 33fd682..fbe15e9 100644
    a b static int setWakeupTime(QString sWakeupTime) 
    385385    // check time given is valid
    386386    QDateTime dtWakeupTime;
    387387    dtWakeupTime = MythDate::fromString(sWakeupTime);
     388    dtWakeupTime.setTimeSpec(Qt::LocalTime);
    388389
    389390    if (!dtWakeupTime.isValid())
    390391    {
    static int setScheduledWakeupTime() 
    432433        if (add)
    433434            restarttime = restarttime.addSecs((-1) * add);
    434435
    435         setWakeupTime(restarttime.toString(Qt::ISODate));
     436        setWakeupTime(restarttime.toLocalTime().toString(Qt::ISODate));
    436437
    437438        return 0;
    438439    }