Ticket #374: SetCurrentTime.patch

File SetCurrentTime.patch, 617 bytes (added by jeremy, 3 years ago)

a simple patch here.

  • framework/subsystems/odeviced/kernel26.py

    diff --git a/framework/subsystems/odeviced/kernel26.py b/framework/subsystems/odeviced/kernel26.py
    index 97e5947..8f25014 100644
    a b class RealTimeClock( dbus.service.Object ): 
    438438    @dbus.service.method( DBUS_INTERFACE, "s", "" ) 
    439439    def SetCurrentTime( self, t ): 
    440440        """Set time by seconds since epoch (UTC)""" 
    441         pyrtc.rtcSetTime( time.gmtime( t ) ) 
     441        pyrtc.rtcSetTime( time.gmtime( float(t) ) ) 
    442442 
    443443    @dbus.service.method( DBUS_INTERFACE, "", "s" ) 
    444444    def GetWakeupTime( self ):