dhruvasagar / vim-dotoo

Org-mode like task logging & time tracking in Vim
558 stars 27 forks source link

Problems when datetimes contain `.` #109

Open sigurdga opened 3 years ago

sigurdga commented 3 years ago

I'm not sure what's going on, but when date are automatically created, I always end up with unix epoch: [1969-12-31 on. 23:00]. Adjusting the date manually or by using ctrl-a, and then pressing <C-C><C-C> resets any date to [1969-12-31 on. 23:00]. The short version of weekday is shortened with a dot, and I suspect that to be the problem.

Everything works as expected with LANG=C, but not with LANG=nb_NO.UTF-8 or LANG=nn_NO.UTF-8. The neighboring LANG=sv_SE.UTF-8 (which does not use . works fine).

(BTW, this is on standard neovim 0.4.4 from ubuntu 2020.10 and vim-dotoo via Plug.)

dhruvasagar commented 3 years ago

Looks like a weird locale issue, i'll try to replicate this and see if I can work around it.

sigurdga commented 3 years ago

Thanks for looking into it. I tested some more locales and saw problems with non-ascii three letters daynames, so it's not only the dots.