Skip to content

feat: add dateISOFormat option - #88

Merged
fengmk2 merged 1 commit into
eggjs:masterfrom
sjfkai:master
Mar 3, 2023
Merged

fengmk2 merged 1 commit into
eggjs:masterfrom
sjfkai:master

Conversation

@sjfkai

@sjfkai sjfkai commented Mar 2, 2023 •

Copy link
Copy Markdown
Contributor

支持将日期格式化为 ISO 标准格式

Resolves eggjs/egg#5145

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

dateISOFormat = true 时,将使用 new Date(). toISOString() 输出日期

With dateISOFormat = true date will output with ISO format
@codecov

codecov Bot commented Mar 3, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change

Comparison is base (5417064) 98.69% compared to head (d609026) 98.69%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   98.69%   98.69%           
=======================================
  Files          14       14           
  Lines        1300     1307    +7     
  Branches      214      215    +1     
=======================================
+ Hits         1283     1290    +7     
  Misses         17       17           
Impacted Files Coverage Δ
lib/egg/logger.js 100.00% <100.00%> (ø)
lib/transports/transport.js 100.00% <100.00%> (ø)
lib/utils.js 94.46% <100.00%> (+0.02%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fengmk2
fengmk2 merged commit 14919d8 into eggjs:master Mar 3, 2023
fengmk2 pushed a commit that referenced this pull request Mar 3, 2023
[skip ci]

## [3.3.0](v3.2.1...v3.3.0) (2023-03-03)

### Features

* add dateISOFormat option ([#88](#88)) ([14919d8](14919d8))
@github-actions

github-actions Bot commented Mar 3, 2023

Copy link
Copy Markdown

🎉 This PR is included in version 3.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

egg-logger 日期格式化增加时区信息

2 participants