Bug 431019

Summary: Current year does not display properly at end of year.
Product: [Applications] skrooge Reporter: machtyn
Component: generalAssignee: Guillaume DE BURE <guillaume.debure>
Status: RESOLVED FIXED    
Severity: normal CC: stephane
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: 25.1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Image shows empty operations, with local date-time at top and version of skrooge.

Description machtyn 2021-01-01 00:53:31 UTC
Created attachment 134429 [details]
Image shows empty operations, with local date-time at top and version of skrooge.

SUMMARY
When displaying "Current Year" in Operation or on Reports, and the user is viewing these reports on Dec 31 local time, but GMT has switched to Jan 1 of the next year, the user is unable to see their current year's set of operations. 

STEPS TO REPRODUCE
1. Live in a location that is -XX:XX of GMT+0:00
2. Wait until after Jan 1 00:00 of GMT+0:00, but before Dec 31 23:59 of GMT -1:00 (or some other western timezone)
3. Try to view Current Year of operations 

OBSERVED RESULT
No operations are visible, as Skrooge thinks it is the next year.

EXPECTED RESULT
User should see operations as defined by their local timezone.


SOFTWARE/OS VERSIONS
Skrooge: 2.24.6
Linux/KDE Plasma: Ubuntu 18.04.4 (guest system in VirtualBox VM)
(available in About System)
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION
Comment 1 Stephane MANKOWSKI 2021-01-30 21:15:08 UTC
Git commit d80656214285dd77cf21fab2e8309e609f8d8f3f by Stephane MANKOWSKI.
Committed on 30/01/2021 at 21:14.
Pushed by smankowski into branch 'master'.

Current year does not display properly at end of year.

M  +5    -5    plugins/skrooge/skrooge_budget/skgbudgetpluginwidget.cpp
M  +1    -1    plugins/skrooge/skrooge_operation/skgoperationplugin.cpp
M  +4    -4    plugins/skrooge/skrooge_report/skgreportplugin.cpp
M  +3    -3    plugins/skrooge/skrooge_report/skgreportpluginwidget.cpp
M  +1    -1    plugins/skrooge/skrooge_scheduled/skgscheduledplugin.cpp
M  +1    -1    plugins/skrooge/skrooge_tracker/skgtrackerplugin.cpp
M  +2    -2    plugins/skrooge/skrooge_unit/skgunitplugin.cpp
M  +1    -1    plugins/skrooge/skrooge_unit/skgunitpluginwidget.cpp
M  +2    -2    skgbankmodeler/skgbudgetobject.cpp
M  +1    -1    skgbankmodeler/skgbudgetruleobject.cpp
M  +2    -2    skgbankmodeler/skgdocumentbank.cpp
M  +1    -1    skgbankmodeler/skgreportbank.cpp
M  +33   -33   skgbankmodeler/skgruleobject.cpp
M  +1    -1    skgbankmodeler/skgruleobject.h
M  +15   -15   skgbasegui/skgperiodedit.cpp
M  +1    -1    tests/skgbankguitest/skgtestpredicatcreator.cpp

https://invent.kde.org/office/skrooge/commit/d80656214285dd77cf21fab2e8309e609f8d8f3f