功能新增: - OSS 存储使用情况显示(文件页面) - OSS 当日流量统计(阿里云云监控API) - 分享页面路由修复(/s/xxx 格式支持) Bug修复: - 修复分享页面资源路径(相对路径改绝对路径) - 修复分享码获取逻辑(支持路径格式) - 修复OSS配额undefined显示问题 - 修复登录流程OSS配置检查 - 修复文件数为null时的显示问题 依赖更新: - 添加 @alicloud/cms20190101 云监控SDK - 添加 @alicloud/openapi-client Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
65 lines
2.6 KiB
Markdown
65 lines
2.6 KiB
Markdown
# [Moment Timezone](http://momentjs.com/timezone/)
|
|
|
|
[![NPM version][npm-version-image]][npm-url]
|
|
[![NPM downloads][npm-downloads-image]][npm-download-url]
|
|
[![MIT License][license-image]][license-url]
|
|
[![Build Status][ci-image]][ci-url]
|
|
[![FOSSA Status][fossa-badge-image]][fossa-badge-url]
|
|
|
|
IANA Time zone support for Moment.js
|
|
|
|
## Project Status
|
|
|
|
Moment-Timezone is an add-on for Moment.js. Both are considered legacy projects, now in maintenance mode. In most cases, you should choose a different library.
|
|
|
|
For more details and recommendations, please see [Project Status](https://momentjs.com/docs/#/-project-status/) in the Moment docs.
|
|
|
|
*Thank you.*
|
|
|
|
## Resources
|
|
|
|
- [Documentation](https://momentjs.com/timezone/docs/)
|
|
- [Changelog](changelog.md)
|
|
- [Stack Overflow](https://stackoverflow.com/questions/tagged/moment-timezone)
|
|
|
|
## Examples
|
|
|
|
```js
|
|
var june = moment("2014-06-01T12:00:00Z");
|
|
june.tz('America/Los_Angeles').format('ha z'); // 5am PDT
|
|
june.tz('America/New_York').format('ha z'); // 8am EDT
|
|
june.tz('Asia/Tokyo').format('ha z'); // 9pm JST
|
|
june.tz('Australia/Sydney').format('ha z'); // 10pm EST
|
|
|
|
var dec = moment("2014-12-01T12:00:00Z");
|
|
dec.tz('America/Los_Angeles').format('ha z'); // 4am PST
|
|
dec.tz('America/New_York').format('ha z'); // 7am EST
|
|
dec.tz('Asia/Tokyo').format('ha z'); // 9pm JST
|
|
dec.tz('Australia/Sydney').format('ha z'); // 11pm EST
|
|
```
|
|
|
|
## License
|
|
|
|
Moment-timezone is freely distributable under the terms of the [MIT license][license-url].
|
|
|
|
[![FOSSA Status][fossa-large-image]][fossa-large-url]
|
|
|
|
|
|
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat
|
|
[license-url]: LICENSE
|
|
|
|
[npm-url]: https://npmjs.org/package/moment-timezone
|
|
[npm-version-image]: https://img.shields.io/npm/v/moment-timezone.svg?style=flat
|
|
|
|
[npm-downloads-image]: https://img.shields.io/npm/dm/moment-timezone.svg?style=flat
|
|
[npm-download-url]: https://npmcharts.com/compare/moment-timezone?minimal=true
|
|
|
|
[ci-url]: https://github.com/moment/moment-timezone/actions/workflows/tests.yml?query=branch%253Adevelop
|
|
[ci-image]: https://github.com/moment/moment-timezone/actions/workflows/tests.yml/badge.svg?query=branch%253Adevelop
|
|
|
|
[fossa-badge-image]: https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment-timezone.svg?type=shield
|
|
[fossa-badge-url]: https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment-timezone?ref=badge_shield
|
|
|
|
[fossa-large-image]: https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment-timezone.svg?type=large
|
|
[fossa-large-url]: https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment-timezone?ref=badge_large
|