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

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

Uploaded wrong version first time. Replaces mythtv-5319-use_toUTC_for_calc_utc_offset.patch

  • libs/libmyth/util.cpp

     
    7882
    7983int calc_utc_offset(void)
    8084{
    81     QDateTime loc = QDateTime::currentDateTime(Qt::LocalTime);
    82     QDateTime utc = QDateTime::currentDateTime(Qt::UTC);
     85    QDateTime loc = QDateTime::currentDateTime();
     86    QDateTime utc = loc.toUTC();
    8387
    8488    int utc_offset = MythSecsTo(utc, loc);
    8589