[LON-CAPA-cvs] cvs: loncom /interface lonhelper.pm

raeburn raeburn at source.lon-capa.org
Wed Aug 29 16:21:30 EDT 2018


raeburn		Wed Aug 29 20:21:30 2018 EDT

  Modified files:              
    /loncom/interface	lonhelper.pm 
  Log:
  - Eliminate: "minute() is a read-only accessor" from log spew. 
  
  
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.200 loncom/interface/lonhelper.pm:1.201
--- loncom/interface/lonhelper.pm:1.200	Mon Jan 15 00:51:42 2018
+++ loncom/interface/lonhelper.pm	Wed Aug 29 20:21:30 2018
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # .helper XML handler to implement the LON-CAPA helper
 #
-# $Id: lonhelper.pm,v 1.200 2018/01/15 00:51:42 raeburn Exp $
+# $Id: lonhelper.pm,v 1.201 2018/08/29 20:21:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1800,7 +1800,7 @@
 	if (lc($time) eq 'anytime') {
 	    $anytime=1;
 	    $date = &get_date_object(time);
-	    $date->min(0);
+            $date->set_minute(0);
 	} elsif (defined($time) && $time ne 0) {
 	    $date = &get_date_object($time);
 	} else {
@@ -1810,7 +1810,7 @@
 
     if (!defined($date)) {
 	$date = &get_date_object(time);
-	$date->min(0);
+        $date->set_minute(0);
     }
 
     if ($anytime) {




More information about the LON-CAPA-cvs mailing list