Ignore:
Timestamp:
10/18/13 10:59:01 (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
a27573b9, 4f9718b
Parents:
688b57d
Message:

On first-boot wizard, add ability to detect users timezone if internet
is connected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-firstbootgui/backend.cpp

    r261f12e r5a1d1a0  
    9595    } 
    9696    return _zones; 
     97} 
     98 
     99QString Backend::guessTimezone() 
     100{ 
     101    QString code; 
     102   
     103    Process p(QStringList() << "detect-country"); 
     104   
     105    if (p.waitForFinished()) { 
     106       code = p.readLine().simplified(); 
     107    } 
     108    code = code.section(" ", 1, 1); 
     109    qDebug() << "Found timezone:" << code; 
     110    return code; 
    97111} 
    98112 
Note: See TracChangeset for help on using the changeset viewer.