webmcp

changeset 90:bdebade717d3

Bugfix in getters "midnight" and "midday" of date atom
author jbe
date Tue Aug 21 00:59:08 2012 +0200 (2012-08-21)
parents 24ed2cd053aa
children 2f8d8edd1836
files libraries/atom/atom.lua
line diff
     1.1 --- a/libraries/atom/atom.lua	Tue Aug 21 00:55:26 2012 +0200
     1.2 +++ b/libraries/atom/atom.lua	Tue Aug 21 00:59:08 2012 +0200
     1.3 @@ -913,11 +913,11 @@
     1.4  end
     1.5  
     1.6  function date.getters:midnight()
     1.7 -  return time{ year = self.year, month = self.month, day = self.day }
     1.8 +  return timestamp{ year = self.year, month = self.month, day = self.day }
     1.9  end
    1.10  
    1.11  function date.getters:midday()
    1.12 -  return time{
    1.13 +  return timestamp{
    1.14      year = self.year, month = self.month, day = self.day,
    1.15      hour = 12
    1.16    }

Impressum / About Us