0

Today, it is February 14th. However, in Tomcat logs, it is showing 45-Feb-2020.

At school, I learnt there can be at most 31 days in a month.

Please share if you have any idea on this.

Thanks in advance. enter image description here

Md.
  • 496
  • 4
  • 11
  • 5
    Check the log output format in your application (should be in the resources folder if you are indeed using a spring-boot app) - it seems that you are incorrectly setting the date format (i.e. printing the Nth day of the year instead of the Nth day of the month) – blurfus Feb 14 '20 at 22:37

1 Answers1

0

Maybe you configured day in a year instead of a day in a month. See your log4j configuration and change %d{DD-MM-yyyy' 'HH:mm:ss.SSS} by %d{dd-MM-yyyy' 'HH:mm:ss.SSS}. Pay attention to the uppercased DD and lowercased dd

Basel Issmail
  • 3,847
  • 7
  • 20
  • 36