[LON-CAPA-cvs] cvs: loncom /enrollment Autoupdate.pl

raeburn raeburn@source.lon-capa.org
Thu, 25 Mar 2010 04:21:32 -0000


raeburn		Thu Mar 25 04:21:32 2010 EDT

  Modified files:              
    /loncom/enrollment	Autoupdate.pl 
  Log:
  - Include time zone in starting timestamp as well as ending time stamp
    for Autoupdate run.
  
  
Index: loncom/enrollment/Autoupdate.pl
diff -u loncom/enrollment/Autoupdate.pl:1.16 loncom/enrollment/Autoupdate.pl:1.17
--- loncom/enrollment/Autoupdate.pl:1.16	Sun Mar 21 21:06:00 2010
+++ loncom/enrollment/Autoupdate.pl	Thu Mar 25 04:21:32 2010
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 #
 # Automated Userinfo update script
-# $Id: Autoupdate.pl,v 1.16 2010/03/21 21:06:00 raeburn Exp $
+# $Id: Autoupdate.pl,v 1.17 2010/03/25 04:21:32 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -61,7 +61,7 @@
         }
         next if (!$run_update);
         open(my $fh,">>$logfile");
-        print $fh ("********************\n".localtime(time).' '.&mt('Autoupdate messages start for domain: [_1]',$dom).' --'."\n");
+        print $fh ("********************\n".&Apache::lonlocal::locallocaltime(time).' '.&mt('Autoupdate messages start for domain: [_1]',$dom).' --'."\n");
         # get courseIDs for domain
         my %courses=&Apache::lonnet::courseiddump($dom,'.',1,'.','.','.',1,[$hostid],'.');
         # get user information