Bug 463658

Summary: The time for programs is not adapted to the local time
Product: [Applications] Telly Skout Reporter: george fb <georgefb899>
Component: GeneralAssignee: Plata <plata.hill>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description george fb 2022-12-31 09:25:02 UTC
SUMMARY
The time displayed is the time from the country that provides the info, Germany in case of tvspielfilm.de, which is 1 hour behind compared to my time.
That is because the QDateTime is constructed from a timestamp which has no info regarding timezones, so a timezone has to be set manually.

Setting the timezone in database.cpp > Database::programs fixes the problem  `data.m_startTime.setTimeZone(QTimeZone("Europe/Berlin"));`.
STEPS TO REPRODUCE
1. Be in a different timezone than the info provider 
2. Open app
3. Time shown is the time it runs in Germany not the time it runs in my country, if something runs at 09:00 in Germany it should display as running at 10:00 for me. 

OBSERVED RESULT
Wrong time is shown

EXPECTED RESULT
Correct time is shown

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221228
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.1.1-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 15.5 GiO of RAM
Graphics Processor: AMD Radeon RX 6600
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X470 AORUS ULTRA GAMING
Comment 1 Bug Janitor Service 2022-12-31 15:54:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma-mobile/telly-skout/-/merge_requests/46