fixed minor bug in Date/POSIXct summary calculation