Просмотр исходного кода

Initialize time zone from environment

Carsten Dominik 17 лет назад
Родитель
Сommit
e15ada501b
2 измененных файлов с 7 добавлено и 2 удалено
  1. 3 0
      lisp/ChangeLog
  2. 4 2
      lisp/org-icalendar.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-05-08  Carsten Dominik  <carsten.dominik@gmail.com>
 2009-05-08  Carsten Dominik  <carsten.dominik@gmail.com>
 
 
+	* org-icalendar.el (org-icalendar-timezone): Initialize from
+	environment.
+
 	* org-html.el (org-format-org-table-html): Specify the scope.
 	* org-html.el (org-format-org-table-html): Specify the scope.
 	(org-format-table-table-html): Specify the scope.
 	(org-format-table-table-html): Specify the scope.
 	(org-export-table-header-tags): Prepare the scope parameter.
 	(org-export-table-header-tags): Prepare the scope parameter.

+ 4 - 2
lisp/org-icalendar.el

@@ -135,11 +135,13 @@ or if they are only using it locally."
   :group 'org-export-icalendar
   :group 'org-export-icalendar
   :type 'boolean)
   :type 'boolean)
 
 
-(defcustom org-icalendar-timezone ""
+(defcustom org-icalendar-timezone (getenv "TZ")
   "The time zone string for iCalendar export.
   "The time zone string for iCalendar export.
 When nil of the empty string, use the abbreviation retrived from Emacs."
 When nil of the empty string, use the abbreviation retrived from Emacs."
   :group 'org-export-icalendar
   :group 'org-export-icalendar
-  :type 'string)
+  :type '(choice
+	  (const :tag "Unspecified" nil)
+	  (string :tag "Time zone")))
 
 
 ;;; iCalendar export
 ;;; iCalendar export