antvis/G2

ScaleOption 的 mask 无法显示当前时区时间 #4112

fantasybye posted onGitHub

<!-- Thank you for your pull request. Please review below requirements. Bug fixes and new features should include tests and possibly benchmarks. Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md 感谢您贡献代码。请确认下列 checklist 的完成情况。 Bug 修复和新功能必须包含测试,必要时请附上性能测试。 Contributors guide: https://github.com/antvis/g2/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • npm test passes
  • benchmarks are included
  • commit message follows commit guidelines
  • documents are updated
Description of change

<!-- Provide a description of the change below this comment. -->

目前 mask 之后显示的一直是格林威治时间,即使可以加上 TimeZone 但并不如直接显示当前时区的时间来的更加直观


G2 底层的日期格式化直接使用 fecha,所以 mask 的值,可以参考他的文档,应该是能满足你对日期格式显示的需求。

posted by hustcc over 2 years ago

Fund this Issue

$0.00
Funded

Pull requests