Good morning,

for the 1th of April 2013 the command date has this interesting behaviour:

date
Mon Apr  1 00:22:31 CEST 2013
date -d 'yesterday'
Sat Mar 30 23:22:38 CET 2013

As you can read the date is 30 March instead of 31 the time 23:22 instead of 00:22

I could verify that on:
That doesn't happen for year 2012 and 2014.
It happens even using -u option.
It does not happen forcing date:
date -d '2013-04-01 00:22:00 1 day ago' 
Sun Mar 31 00:22:00 CET 2013

If you need more information just ask and I will try to respond as soon as possible.

Thank you, best regards.


Ivan Lombardi Borgia