Skip to content

Fix debug log files for certain locales#2288

Merged
DeMoorJasper merged 1 commit into
parcel-bundler:masterfrom
phlmn:fix-log-filenames
Nov 17, 2018
Merged

Fix debug log files for certain locales#2288
DeMoorJasper merged 1 commit into
parcel-bundler:masterfrom
phlmn:fix-log-filenames

Conversation

@phlmn

@phlmn phlmn commented Nov 16, 2018

Copy link
Copy Markdown
Contributor

When using --log-level 5 on a system with US locale the command failed because the name of the log file to be created contained slashes (eg. 2018/11/16).

I replaced Date.toLocaleString() with Date.toISOString() to fix that and provide consistent results.

DeMoorJasper
DeMoorJasper previously approved these changes Nov 16, 2018
@phlmn

phlmn commented Nov 16, 2018

Copy link
Copy Markdown
Contributor Author

Sorry, I did forget to run prettier. 😳

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants