|
From: <ni...@us...> - 2010-11-04 21:50:52
|
Revision: 77
http://openautomation.svn.sourceforge.net/openautomation/?rev=77&view=rev
Author: nilss1
Date: 2010-11-04 21:50:46 +0000 (Thu, 04 Nov 2010)
Log Message:
-----------
Fixed: Date and Time returned str instead pf unicode
Modified Paths:
--------------
PyWireGate/trunk/knx_connector/DPT_Types.py
Modified: PyWireGate/trunk/knx_connector/DPT_Types.py
===================================================================
--- PyWireGate/trunk/knx_connector/DPT_Types.py 2010-11-04 21:39:18 UTC (rev 76)
+++ PyWireGate/trunk/knx_connector/DPT_Types.py 2010-11-04 21:50:46 UTC (rev 77)
@@ -291,7 +291,7 @@
sec = raw[2] & 0x3f
## Fixme: eigentlich sollte Zeit als Unix Timestamp gespeichert werden, was macht man mit dem Wochentag
## machs erstmal so wie makki
- return "%s %d:%d:%d" % (weekdays[weekday], hour,min,sec)
+ return u"%s %d:%d:%d" % (weekdays[weekday], hour,min,sec)
def encodeDPT10(self,val):
## checktype default unix timestamp
@@ -345,7 +345,7 @@
year += 2000
else:
year += 1900
- return "%02d.%02d.%04d" % (day,mon,year)
+ return u"%02d.%02d.%04d" % (day,mon,year)
def encodeDPT11(self,val):
if type(val) in [float, int]:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|