made our code resistant to changes by Java's Date function