Show
Ignore:
Timestamp:
11/08/06 22:43:38 (17 years ago)
Author:
jerome
Message:

Fixed date and time parsing, although I was unable to reproduce the problem reported...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r3045 r3050  
    544544                            now = DateTime.now() 
    545545                            if userpquota.DateLimit is not None : 
    546                                 datelimit = DateTime.ISO.ParseDateTime(str(userpquota.DateLimit)) 
     546                                datelimit = DateTime.ISO.ParseDateTime(str(userpquota.DateLimit)[:19]) 
    547547                            else : 
    548548                                datelimit = now + self.config.getGraceDelay(printer.Name) 
     
    603603                            now = DateTime.now() 
    604604                            if grouppquota.DateLimit is not None : 
    605                                 datelimit = DateTime.ISO.ParseDateTime(str(grouppquota.DateLimit)) 
     605                                datelimit = DateTime.ISO.ParseDateTime(str(grouppquota.DateLimit)[:19]) 
    606606                            else : 
    607607                                datelimit = now + self.config.getGraceDelay(printer.Name)