Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting timezone of org-mode

Tags:

emacs

org-mode

I'm just getting started with org-mode, and really like it so far. I work in London with xemacs running on OpenVMS based on the East Coast US. Is there any way to get org-mode to use a timezone other than the server's default?

I've tried:

(setq calendar-time-zone 0)
(setq calendar-standard-time-zone-name "GMT")
(setq calendar-daylight-time-zone-name "GDT")

with no luck.

like image 449
Dominic Rodger Avatar asked Oct 15 '09 08:10

Dominic Rodger


People also ask

How do I change the default time zone?

The date_default_timezone_set() function sets the default timezone used by all date/time functions in the script.

What is so great about Org mode?

Org-mode offers the ability to insert source code in the document being edited, which is automatically exported and/or executed when exporting the document; the result(s) produced by this code can be automatically fetched back in the resulting output.


1 Answers

Turns out:

(set-time-zone-rule "GMT-1")

works.

I'm not entirely clear why this:

(set-time-zone-rule "BST")

gives the wrong output (it results in times 1 hour early, even though BST is the current timezone string for London, UK).

like image 165
Dominic Rodger Avatar answered Nov 05 '22 16:11

Dominic Rodger