Bug 431019 - Current year does not display properly at end of year.
Summary: Current year does not display properly at end of year.
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: 25.1.0
Assignee: Guillaume DE BURE
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-01 00:53 UTC by machtyn
Modified: 2021-01-30 21:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Image shows empty operations, with local date-time at top and version of skrooge. (52.34 KB, image/png)
2021-01-01 00:53 UTC, machtyn
Details

Note You need to log in before you can comment on or make changes to this bug.
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