Hi,
There seems to be some weirdness in date arithmetic when dates
include a time stamp (and all provided in ISO formatting):
Correct:
address@hidden:~$ date -d "2014-03-11" +"%Y-%m-%d %H:%M:%S"
2014-03-11 00:00:00
address@hidden:~$ date -d "2014-03-11 -1 day" +"%Y-%m-%d %H:%M:%S"
2014-03-10 00:00:00
Incorrect:
address@hidden:~$ date -d "2014-03-11 12:34 -2 hours" +"%Y-%m-%d
%H:%M:%S"
2014-03-11 15:34:00
address@hidden:~$ date -d "2014-03-11 12:34 +2 hours" +"%Y-%m-%d
%H:%M:%S"