为什么 as.POSIXct 输出 BST 而不是 UTC?

Why is as.POSIXct outputting BST instead of UTC?

as.POSIXct("Tue Aug 18 2020 08:45:02 GMT+0000 (Coordinated Universal Time)", tx="UTC", format = "%a %b %d %Y %H:%M:%OS")
[1] "2020-07-13 08:24:03 BST"

将 GMT 而不是 UTC 设置为时区的相同输出

as.POSIXct("Tue Aug 18 2020 08:45:02 GMT+0000 (Coordinated Universal Time)", tx="GMT", format = "%a %b %d %Y %H:%M:%OS")
[1] "2020-07-13 08:24:03 BST"

作为参考,我在 Rstudio 中这样做

时区选项是“tz”而不是“tx”。这按预期工作:

> as.POSIXct("Tue Aug 18 2020 08:45:02 GMT+0000 (Coordinated Universal Time)", tz="UTC", format = "%a %b %d %Y %H:%M:%OS")
[1] "2020-08-18 08:45:02 UTC"