- Timestamp:
- 13 Nov 2014, 14:40:27 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/widgets/datewidget.py
r9498 r11949 26 26 from zope.formlib.widget import renderElement, CustomWidgetFactory 27 27 from zope.interface import implements 28 from waeup. kofa.interfaces import IKofaUtils29 from waeup. kofa.utils.helpers import to_timezone28 from waeup.ikoba.interfaces import IIkobaUtils 29 from waeup.ikoba.utils.helpers import to_timezone 30 30 31 31 … … 82 82 If the widget is bound to a schema field with respective 83 83 attributes, it reads its `show_year` and `date_format` attributes 84 (see waeup. kofa.schema.FormattedDate for an example) and sets a84 (see waeup.ikoba.schema.FormattedDate for an example) and sets a 85 85 CSS tag according to these values. 86 86 … … 141 141 It can also be used for displaying datetimes. If used to display a 142 142 datetime (not a date), the widget returns local datetime with 143 timezone set according to KofaUtils.143 timezone set according to IkobaUtils. 144 144 """ 145 145 date_format = '%Y-%m-%d' … … 167 167 # shift value to local timezone 168 168 tz = pytz.utc 169 utils = queryUtility(I KofaUtils)169 utils = queryUtility(IIkobaUtils) 170 170 if utils is not None: 171 171 tz = utils.tzinfo
Note: See TracChangeset for help on using the changeset viewer.