Update of /cvsroot/freevo/freevo/src/www/htdocs
In directory sc8-pr-cvs1:/tmp/cvs-serv1834

Modified Files:
        wap_rec.rpy 
Log Message:
Apply Bart Heremans strptime patch for off by one hour

Index: wap_rec.rpy
===================================================================
RCS file: /cvsroot/freevo/freevo/src/www/htdocs/wap_rec.rpy,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** wap_rec.rpy 5 Sep 2003 02:48:13 -0000       1.2
--- wap_rec.rpy 22 Oct 2003 15:38:34 -0000      1.3
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.3  2003/10/22 15:38:34  mikeruelle
+ # Apply Bart Heremans strptime patch for off by one hour
+ #
  # Revision 1.2  2003/09/05 02:48:13  rshortt
  # Removing src/tv and src/www from PYTHONPATH in the freevo script.  Therefore any 
module that was imported from src/tv/ or src/www that didn't have a leading 'tv.' or 
'www.' needed it added.  Also moved tv/tv.py to tv/tvmenu.py to avoid namespace 
conflicts.
***************
*** 46,49 ****
--- 49,60 ----
  from www.wap_types import WapResource, FreevoWapResource
  
+ # Use the alternate strptime module which seems to handle time zones
+ #
+ # XXX Remove when we are ready to require Python 2.3
+ if float(sys.version[0:3]) < 2.3:
+     import tv.strptime as strptime
+ else:
+     import _strptime as strptime
+ 
  class WRecResource(FreevoWapResource):
  
***************
*** 70,75 ****
          if action:
             if action == 'add':
!               starttime = time.mktime(time.strptime(str(startdate)+" 
"+str(start)+":00",'%d/%m/%y %H:%M:%S'))
!               stoptime = time.mktime(time.strptime(str(startdate)+" 
"+str(stop)+":00",'%d/%m/%y %H:%M:%S'))
                if stoptime < starttime:
                    stoptime = stoptime + 86400
--- 81,86 ----
          if action:
             if action == 'add':
!               starttime = time.mktime(strptime.strptime(str(startdate)+" 
"+str(start)+":00",'%d/%m/%y %H:%M:%S'))
!               stoptime = time.mktime(strptime.strptime(str(startdate)+" 
"+str(stop)+":00",'%d/%m/%y %H:%M:%S'))
                if stoptime < starttime:
                    stoptime = stoptime + 86400




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to