Skip to content

dird: fix bugs in DateTime#2260

Merged
BareosBot merged 2 commits intobareos:masterfrom
florian-at-bareos:dev/fburger/master/fix-date-time
May 6, 2025
Merged

dird: fix bugs in DateTime#2260
BareosBot merged 2 commits intobareos:masterfrom
florian-at-bareos:dev/fburger/master/fix-date-time

Conversation

@florian-at-bareos
Copy link
Contributor

@florian-at-bareos florian-at-bareos commented Apr 29, 2025

Note that until this PR is merged, the system:scheduler:scheduler-last-keyword system test will fail.

  1. DateTime::year is not set
  2. DateTime::WeekOfMonth should return int not bool

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Required backport PRs have been created
  • Correct milestone is set
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

1.  DateTime::year is not set
2. DateTime::WeekOfMonth should return int not bool
@florian-at-bareos florian-at-bareos added the bug This addresses a bug label Apr 29, 2025
@florian-at-bareos florian-at-bareos added this to the 25.0.0 milestone Apr 29, 2025
@florian-at-bareos florian-at-bareos self-assigned this Apr 29, 2025
@florian-at-bareos florian-at-bareos marked this pull request as ready for review April 29, 2025 14:55
}

bool DateTime::WeekOfMonth() const { return day_of_month / 7; }
int DateTime::WeekOfMonth() const { return day_of_month / 7; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Im not sure how that slipped past me!

@BareosBot BareosBot merged commit be8e875 into bareos:master May 6, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This addresses a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants