我刚开始使用org-mode,并且非常喜欢它。我在伦敦工作,通过在基于美国东海岸的OpenVMS上运行xemacs来使用它。有没有办法让org-mode使用除服务器默认时区之外的时区? 我尝试过: (setq calendar-time-zone 0) (setq calendar-standard-time-zone-name "GMT") (setq calendar-daylight-time-zone-name "GDT") 没有运气。
原来:(set-time-zone-rule "GMT-1") 工作。 我不完全清楚为什么这样: (set-time-zone-rule "BST") 输出了错误的结果(即使BST是伦敦英国当前的时区字符串,它也会导致提前1小时的时间)。
(set-time-zone-rule)
需要在/usr/share/zoneinfo
路径下设置(至少在GNU/Linux上是这样),就像你可能设置TZ
环境变量一样。例如(set-time-zone-rule "/usr/share/zoneinfo/Asia/Seoul")
。 - Sean WhittonEurope/London
是当前的规范名称。 - billkw