mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 09:48:51 +00:00
Drop pytz as recent version doesn't work correctly with vobject.
Use dateutil.tz instead. Monotone-Parent: cec86bee0b5e2a1fc741887d9b9e535436381c6e Monotone-Revision: b34c698acd51d633a7d276d6fbbcab8a47e7e460 Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-01-09T17:18:11 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
setup
|
||||
-----
|
||||
|
||||
(you need "python-simplejson", "python-xml", "python-vobject" and "python-m2crypto"
|
||||
(you need "python-simplejson", "python-xml", "python-vobject", "python-dateutil" and "python-m2crypto"
|
||||
in order to run the scripts on Debian)
|
||||
|
||||
1) copy config.py.in to config.py (make sure to never EVER add it to monotone)
|
||||
|
||||
@@ -8,10 +8,10 @@ from config import hostname, port, username, password, \
|
||||
resource_no_overbook, resource_can_overbook
|
||||
|
||||
import datetime
|
||||
import dateutil.tz
|
||||
import sogotests
|
||||
import sys
|
||||
import time
|
||||
import pytz
|
||||
import unittest
|
||||
import utilities
|
||||
import vobject
|
||||
@@ -143,7 +143,7 @@ class CalDAVITIPDelegationTest(unittest.TestCase):
|
||||
vevent.add('summary').value = summary
|
||||
vevent.add('transp').value = transparency[transp]
|
||||
|
||||
now = datetime.datetime.now(pytz.timezone("America/Montreal"))
|
||||
now = datetime.datetime.now(dateutil.tz.gettz("America/Montreal"))
|
||||
startdate = vevent.add('dtstart')
|
||||
startdate.value = now
|
||||
enddate = vevent.add('dtend')
|
||||
|
||||
Reference in New Issue
Block a user