We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad92ae4 commit 6712a4aCopy full SHA for 6712a4a
libgnucash/engine/gnc-option-date.cpp
@@ -519,14 +519,12 @@ time64
519
gnc_relative_date_to_time64(RelativeDatePeriod period, time64 now_t)
520
{
521
if (period == RelativeDatePeriod::TODAY)
522
- return static_cast<time64>(GncDateTime());
+ return now_t;
523
if (period == RelativeDatePeriod::START_ACCOUNTING_PERIOD)
524
return gnc_accounting_period_fiscal_start();
525
if (period == RelativeDatePeriod::END_ACCOUNTING_PERIOD)
526
return gnc_accounting_period_fiscal_end();
527
528
- if (period == RelativeDatePeriod::TODAY)
529
- return now_t;
530
auto now{static_cast<tm>(GncDateTime(now_t))};
531
struct tm acct_per =
532
static_cast<tm>(GncDateTime(gnc_accounting_period_fiscal_start()));
0 commit comments