Mekeor Melire <mek...@posteo.de> writes: > But it results in empty (nil, I guess) time-stamps being displayed as > the current time; and non-nil time-stamps being displayed with the > current hour and minute. What's wrong?
Empty time-stamps will be literally empty: "" (that is: empty string). (if "" 1 2) will return 1. That's why you got unexpected result. You could instead use (if (and value (not (string-empty-p value))) ...) Best, Ihor