Fixed --date functionality