Ticket #8217: addSecsDST.patch

File addSecsDST.patch, 726 bytes (added by Andreas Oeldenberger <Andreas.Oeldenberger@…>, 5 years ago)
  • programs/mythfilldatabase/xmltvparser.cpp

     
    206206            ts_offset = 0;
    207207            localTimezoneOffset = 841;
    208208        }
     209        dt.setTimeSpec(Qt::UTC);        // stop addSecs doing funny things during DST change
    209210        dt = dt.addSecs(-ts_offset * 60);
    210211    }
    211212
     
    216217    else if (abs(localTimezoneOffset) <= 840)
    217218    {
    218219        dt = dt.addSecs(localTimezoneOffset * 60 );
     220        dt.setTimeSpec(Qt::LocalTime);  // change back to local
    219221    }
    220222
    221223    timestr = dt.toString("yyyyMMddhhmmss");