changed the signature of getDateWithOffset(),
fixed some tests,
updated license