Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SectionManager week dirs does not respect european.cal setting #325

Open
hrxcodes opened this issue Feb 18, 2024 · 0 comments
Open

SectionManager week dirs does not respect european.cal setting #325

hrxcodes opened this issue Feb 18, 2024 · 0 comments
Labels

Comments

@hrxcodes
Copy link
Contributor

Describe the bug
New week-dirs created by SectionManager are created on sundays rather than mondays.

To Reproduce
Steps to reproduce the behavior:

  1. Set to true
  2. Set master.conf sectionmanager=org.drftpd.master.sections.conf.SectionManager
  3. Configure a section that uses week:
1.type=dated
1.path=/ebook
1.name=ebook
1.dated=YYYY-ww
1.now=-week

Expected behavior
Week dirs are created and linked on Sundays rather than Mondays

Additional context
Probably this: https://github.com/drftpd-ng/drftpd/blob/master/src/core/master/src/main/java/org/drftpd/master/sections/conf/DatedSection.java needs some logic to incorporate the european.cal option as that seems to only be used with TrialManager at the moment.

@hrxcodes hrxcodes added the bug label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant