Docker on Synology Log Folder Date Issue
that1itguy opened this issue · comments
I have the Docker container set up and running in Synology. When I look at the log in Docker, it always shows tomorrow's date and I am not sure where it is getting the date from. I have checked my synology and my date and time are right but it always seems like it's a day ahead of what the log should be. Today is 12/05 but if I look at the logs, it's making entries in the 12/06 log.
![Screenshot 2023-12-05 at 7 19 23 PM](https://private-user-images.githubusercontent.com/64555717/288251468-391b162f-f114-4ecb-8325-f41481275428.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MjY2MjgsIm5iZiI6MTcyMDUyNjMyOCwicGF0aCI6Ii82NDU1NTcxNy8yODgyNTE0NjgtMzkxYjE2MmYtZjExNC00ZWNiLTgzMjUtZjQxNDgxMjc1NDI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDExNTg0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmZDM5ZDZkMzA2NDUyNTM4NjExOTcxNGM0MDc4NDMxNDVjNzA2ZWRjMzBjZGUwYmRiN2RmYjYzYmY1ZjkzZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.F88DkWaqAWCRhD3k2r2zFFs-F91QCqNSIAJNOs5HyWQ)
![Screenshot 2023-12-05 at 7 20 04 PM](https://private-user-images.githubusercontent.com/64555717/288251495-86c5c782-c878-41af-a77e-41fbd8edce99.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MjY2MjgsIm5iZiI6MTcyMDUyNjMyOCwicGF0aCI6Ii82NDU1NTcxNy8yODgyNTE0OTUtODZjNWM3ODItYzg3OC00MWFmLWE3N2UtNDFmYmQ4ZWRjZTk5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDExNTg0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzN2I3Mzk5YTk2ZWQ5NWVkZjE1ZDU1YTNlMjE2ODA2MTdjMmYzODVjMzRhMWI0MjRjOTVhYjVjN2IwZmYyOGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NngEuoNWN6wyR55SkyHmLqw70F52La9-uSZPNxSAC1g)
Maybe the process creating that log file is using a different timezone than your system timezone?
I did forget to mention that for the docker container, the timezone is set up as America/Chicago which is the same timezone used in Minnesota.