adding fix to return the correct datetimestamp for rails generator