rfc 3339 时间戳格式无效?

发布于 2024-09-12 02:39:54 字数 372 浏览 1 评论 0原文

我插入了这个时间戳作为博主查询的一部分:

http://www.blogger.com/feeds/26861498/posts/default?published-min=1937-01-01T12:00:27.87+08:00

它返回给我一个无效的 pub-min 格式错误。

但据我所知,这个时间格式看起来还不错!

有人可以帮忙吗?

I inserted this timestamp as part of the blogger query:

http://www.blogger.com/feeds/26861498/posts/default?published-min=1937-01-01T12:00:27.87+08:00

It returned me an invalid pub-min format error.

But as far as I know, this time format looks alright!

can anyone help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白首有我共你 2024-09-19 02:39:54

而且,我可以使用“12:22:00-07:00”之类的东西,但不能使用“+08:00”

您犯的非常简单的错误:没有对值进行 URI 编码。您会看到,+ 实际上是 URI 中的空格,除非将其编码为 %2B,否则不会作为加号到达服务器。在发送之前使用 PHP 函数 rawurlencode 或 JavaScript 函数 encodeURIComponent 对参数进行转义。

Morever, I can use sometihng like '12:22:00-07:00' but just not '+08:00'

Very simple error you've made: not URI-encoding the value. You see, + is actually a space in a URI, and won't reach the server as a plus unless you encode it as %2B. Use the PHP function rawurlencode or the JavaScript function encodeURIComponent to escape the argument before sending.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文