From 6cf52faeb6c8bbc505ec6235174628059b2c4b77 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Tue, 4 Jan 2022 21:44:46 +0100 Subject: [PATCH] Update libshared to 072e0e0cb91c1e05e02db59ed83924b43e992938 With 179a6153, all 'end of' named dates point to the last second of the respective interval. (see GothenburgBitFactory/taskwarrior#2519) Redefine hint intervals in Timewarrior by 'start of' named dates, such that their ranges comprise the full interval as expected. Signed-off-by: Thomas Lauf --- src/helper.cpp | 14 +++++++------- src/libshared | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/helper.cpp b/src/helper.cpp index ac28b4ff..901de476 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -138,13 +138,13 @@ bool expandIntervalHint ( { static std::map > hints { - {":yesterday", {"yesterday", "today"}}, - {":day", {"today", "eod"}}, - {":week", {"sow", "eow"}}, - {":fortnight", {"sopw", "eow"}}, - {":month", {"som", "eom"}}, - {":quarter", {"soq", "eoq"}}, - {":year", {"soy", "eoy"}}, + {":yesterday", {"sopd", "sod" }}, + {":day", {"sod", "sond"}}, + {":week", {"sow", "sonw"}}, + {":fortnight", {"sopw", "sonw"}}, + {":month", {"som", "sonm"}}, + {":quarter", {"soq", "sonq"}}, + {":year", {"soy", "sony"}}, }; static std::vector dayNames diff --git a/src/libshared b/src/libshared index c1760be8..072e0e0c 160000 --- a/src/libshared +++ b/src/libshared @@ -1 +1 @@ -Subproject commit c1760be8686ce0b2f778832aaa1e2f98eed2ffc1 +Subproject commit 072e0e0cb91c1e05e02db59ed83924b43e992938