-
Notifications
You must be signed in to change notification settings - Fork 63
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
[proposal] 启动器公告 #24
Comments
|
@andylizi 我所使用的日期时间格式也是标准的,各语言的类库应该都提供了格式化函数。而且和 UNIX 时间戳相比,ISO 8601 是人类可读的。至于时区的问题,字符串末尾的 Z 代表的就是 UTC 时区。 |
我觉得可以像error一样,提供一个机器可读(Unix时间戳)和一个人类可读(按服务器所在时区计算)来提供公告 |
没有必要,只要统一采用UTC时间就行。 |
同意,API是放机器读取的,Unix时间戳无非是最好的选择,让启动器自行将timestamp转为可读时间即可 |
那就不规定时区好了,反正 ISO 8601 里自己带时区信息。 |
概述
该提案为验证服务器向启动器推送公告制定了规范。
格式
公告包含在
meta
里的notice
属性中,其格式如下:content
是一段纯文本。文本可以有多行,使用 LF 作为换行符。lastUpdate
是一个符合 ISO 8601 格式的日期时间,如2011-03-21T00:18:56Z
。下面给出一个完整的例子:
启动器实现时的注意点
验证服务器实现时的注意点
欢迎诸位就本提案提出意见。
The text was updated successfully, but these errors were encountered: