mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-11-19 15:18:45 +01:00
Filter presets save the exact dates they were created with, so a preset for "from today" or "this month" goes stale the next day or month. The save dialog now offers "Keep dates relative to today". When ticked, the preset remembers the day it was saved (`FilterPreset.relative_to`) and, when applied, moves its dates forward by the time elapsed since: "Date from"/"Until" by days and the reference months by months. A preset saved with today as the start date always starts today, and one saved for the current reference month always shows the current month. - The option is only stored when the preset has a date filter. - Presets with relative dates show a clock icon in the presets menu. - Presets saved before this change, or without the option, keep their fixed dates.