Bugfix for date command