Refs #1381: Fixed cookie date format to work consitently on all JVM versions