1.1 --- a/imiptools/content.py Thu Jan 22 17:50:22 2015 +0100
1.2 +++ b/imiptools/content.py Thu Jan 22 17:50:54 2015 +0100
1.3 @@ -442,6 +442,14 @@
1.4
1.5 return True
1.6
1.7 + def update_dtstamp(self):
1.8 +
1.9 + "Update the DTSTAMP in the current object."
1.10 +
1.11 + dtstamp = self.get_utc_datetime("DTSTAMP")
1.12 + utcnow = to_timezone(datetime.utcnow(), "UTC")
1.13 + self.details["DTSTAMP"] = [(format_datetime(dtstamp > utcnow and dtstamp or utcnow), {})]
1.14 +
1.15 # Handler registry.
1.16
1.17 methods = {