small fix to dates.coffee

In rare cases, diff may be negative in dates (so a "-1 seconds ago" may be printed);
a simple check in dates.coffee easily prevents this misbehaviour.