# HG changeset patch # User jbe # Date 1345503548 -7200 # Node ID bdebade717d3a176bfd04672d4d21ba7cea18d7d # Parent 24ed2cd053aa12a50290b7e810181d8497ff76fb Bugfix in getters "midnight" and "midday" of date atom diff -r 24ed2cd053aa -r bdebade717d3 libraries/atom/atom.lua --- a/libraries/atom/atom.lua Tue Aug 21 00:55:26 2012 +0200 +++ b/libraries/atom/atom.lua Tue Aug 21 00:59:08 2012 +0200 @@ -913,11 +913,11 @@ end function date.getters:midnight() - return time{ year = self.year, month = self.month, day = self.day } + return timestamp{ year = self.year, month = self.month, day = self.day } end function date.getters:midday() - return time{ + return timestamp{ year = self.year, month = self.month, day = self.day, hour = 12 }