Ticket #732: moto-sync-patch

File moto-sync-patch, 951 bytes (added by floe, 6 years ago)
Line 
1--- /home/echtler/moto-sync/motosync.py 2008-04-30 11:17:42.000000000 +0200
2+++ /usr/lib/opensync-1.0/python-plugins/motosync.py    2008-04-30 11:16:25.000000000 +0200
3@@ -562,7 +562,7 @@
4         ret['repeat_end'] = ruleset[-1]
5 
6     # what events would happen if there were no exceptions?
7-    now = datetime.now(dateutil.tz.tzutc())
8+    now = datetime.now() #dateutil.tz.tzutc())
9     all_occurrences = ruleset.between(now, now + RRULE_FUTURE)
10     past_events = len(ruleset.between(eventdt, now, True))
11 
12@@ -2290,7 +2290,7 @@
13     def get_changes(self, info, ctx):
14         """Report all OSyncChange objects for entries on the phone."""
15         if self.sink.slowsync:
16-            self.hashtable.reset_reports()
17+            self.hashtable.reset()
18         for change in self.access.list_changes(self.objtype):
19             self.hashtable.report(change.uid)
20             change.changetype = self.hashtable.get_changetype(change.uid, change.hash)