Skip to content

Week Year instead of Calendar Year in documentation and config file #491

Description

@akasparas
SimpleDateFormat and FastDateFormat libraries format YYYY and yyyy diferently. 
yyyy is 'Calendar Year' and should be used in most places in documentation and examples. 
YYYY is 'Week Year' and should be used only with week number, like "YYYY-'W'ww".

Year 2026 started on Thursday, so week 2026-W01 started on 2025-12-29 and on 
that day $date.YYYY-MM-dd$ was instantiated as 2026-12-29. Finding directories 
with such dates confused me a lot. And this would not happen, if I would used 
lowercase yyyy in configuration.

So, what should be fixed?
- Documentation, paragraph 8. Dynamic variables. $date.YYYY$ should be 
  replaced with $date.yyyy$. It would be good idea to discourage use of 
  $date.YYYY$ with explanation why. And also mention that it is not necessary 
  to use several date variables for year, month, day, etc--it's possible to write 
  complex date format in one variable.
- Server/src/config/config.xml /config/properties/@pollerConfigBase.errordir -- 
  change $date.YYYY$--$date.MM$-$date.dd$ to $date.yyyy-MM-dd$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions