use date.getTime() instead of date.toString() during ruby model initialization