-
Notifications
You must be signed in to change notification settings - Fork 157
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
Filename includes timezone offset. How to disable? #231
Comments
This feature is being tracked at rogerc/file-stream-rotator#31. Once this is supported by the file-stream-rotator component, I can publish a new version of winston to support the option. |
@mattberther Thank you |
@mattberther, file-stream-rotator has published an update enabling a UTC option as of 0.5.0. Additionally, a bug fix related to varying results depending on when file-stream-rotator evaluated has been fixed: rogerc/file-stream-rotator#53 So, a UTC option should now be possible. Let me know if you would like a PR. |
Thanks for the offer, @mscottnelson. If you have a PR, I'd welcome it. If not, I should be able to incorporate this in the next day or two. :) |
Thank you for the quick turnaround! :) |
Just added PR for |
I have faced with issue that the datePattern includes timezone offset. I would like to have the file names in UTC.
I'm using the next settings:
Especially please look here:
datePattern: 'YYYY-MM-DDTHH'
In practice I have the file:
app_2019-07-24T22.log
where the first line is:2019-07-24T19:05:26.185Z [label] ...
.(I have +03 hours timezone)
Is that an issue or expected behaviour? I haven't found way to force to use file rotator only UTC for file names.
The text was updated successfully, but these errors were encountered: