jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.1k stars 266 forks source link

Timestamp insertion produces timestamp with localized day #249

Open schoettl opened 8 years ago

schoettl commented 8 years ago

The shortcuts \sa and \si produce a timestamp with a localized day, e.g. German <2016-07-29 Fr>.

But it should always be english, because:

  1. only engish timestamps are syntax highlighted
  2. the speeddate plugin to increment dates only works with the english format

My environment variables are:

$ env | grep -E 'LANG|LC|LOCALE'
LANG=en_US.UTF-8
GDM_LANG=de_DE.utf8
CSF_LANGUAGE=us
schoettl commented 7 years ago

I just found that emacs' orgmode also uses the user's locale but they have a setting to change this: http://orgmode.org/worg/org-faq.html#timestamps-and-system-time-locale

I guess it's hard to implement such a setting in vim-orgmode. I just tried to output the engish format but output is only one side of the coin. Parsing is the other.