Ticket #5319: mythtv-5319-use_toUTC_for_calc_utc_offset-20080729.patch

File mythtv-5319-use_toUTC_for_calc_utc_offset-20080729.patch, 531 bytes (added by sphery <mtdean@…>, 12 years ago)

Updated patch for recent changes to trunk.

  • libs/libmyth/util.cpp

    old new  
    7474
    7575int calc_utc_offset(void)
    7676{
    77     QDateTime loc = QDateTime::currentDateTime(Qt::LocalTime);
    78     QDateTime utc = QDateTime::currentDateTime(Qt::UTC);
     77    QDateTime loc = QDateTime::currentDateTime();
     78    QDateTime utc = loc.toUTC();
    7979
    8080    int utc_offset = MythSecsTo(utc, loc);
    8181