Ticket #5319: mythtv-5319-use_toUTC_for_calc_utc_offset.patch

File mythtv-5319-use_toUTC_for_calc_utc_offset.patch, 433 bytes (added by sphery <mtdean@…>, 12 years ago)
  • libs/libmyth/util.cpp

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