[Koha] Problem with Date::Manip

robweir at alum.drexel.edu robweir at alum.drexel.edu
Wed Feb 26 04:39:04 NZDT 2003


The following is from Manip.pod, the documentation file for Date::Manip

"Date::Manip must be able to determine the timezone the user is in.  It does
this by looking in the following places:

   $Date::Manip::TZ (set with Date_Init or in Manip.pm)
   $ENV{TZ}
   the unix `date` command (if available)
   $main::TZ
   /etc/TIMEZONE
   /etc/timezone

At least one of these should contain a timezone in one of the supported
forms.  If none do by default, the TZ variable must be set with Date_Init."

I had the same problem you are having on a windows install of Koha and solved it by creating a file named timezone in my \etc folder with the following entry:

TZ=EST

See the Manip.pod documentation file for other acceptable timezone abreviations.

Rob


  ----- Original Message ----- 
  From: Rosunee Arvindnath 
  To: koha at lists.katipo.co.nz 
  Sent: Tuesday, February 25, 2003 5:38 AM
  Subject: [Koha] Problem with Date::Manip


  I have installed Koha version 1.2.3 on Red Linux 8.0.  I have installed Date::Manip by downlading the file DateManip-5.40.tar.gz from http://search.cpan.org and installed the module by perl Makefile.PL, make, make test, make install.

   

  I got plenty of these lines during the make test stage (this is just a sample):

  // Start My Sample

  Malformed UTF-8 character (unexpected non-continuation byte 0x73, immediately after start byte 0xe

  9) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6477.

  Malformed UTF-8 character (unexpected non-continuation byte 0x73, immediately after start byte 0xe

  9) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6478.

  Malformed UTF-8 character (unexpected non-continuation byte 0x6c, immediately after start byte 0xf

  a) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6481.

  Malformed UTF-8 character (unexpected non-continuation byte 0x73, immediately after start byte 0xe

  0) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6484.

  Malformed UTF-8 character (1 byte, need 3, after start byte 0xe0) at /opt/DateManip-5.40/blib/lib/

  Date/Manip.pm line 6487.

  Malformed UTF-8 character (unexpected non-continuation byte 0x78, immediately after start byte 0xf

  3) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6488.

  Malformed UTF-8 character (unexpected non-continuation byte 0x78, immediately after start byte 0xf

  3) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6488.

  Malformed UTF-8 character (unexpected non-continuation byte 0x6c, immediately after start byte 0xf

  a) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6489.

  Malformed UTF-8 character (unexpected non-continuation byte 0x6c, immediately after start byte 0xf

  a) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6489.

  Malformed UTF-8 character (1 byte, need 3, after start byte 0xe3) at /opt/DateManip-5.40/blib/lib/

  Date/Manip.pm line 6497.

  Malformed UTF-8 character (unexpected non-continuation byte 0x73, immediately after start byte 0xe

  a) at /opt/DateManip-5.40/blib/lib/Date/Manip.pm line 6501.

  //End My Sample

   

  Interestingly enough after all these messages the system reports:

  All tests successful.

  Files=31, Tests=842, 110 wallclock secs (101.07 cusr +  3.02 csys = 104.09 CPU)

   

  I then proceeded with make install and the installation looks successful.

   

  When I try to add a new adult member, this is what I got in my koha-error_log file (found in /var/log/httpd/)

   

  [Mon Feb 24 16:36:11 2003] [error] [client 172.22.23.12] Premature end of script headers: newmembe

  r.pl, referer: http://172.22.23.200:8080/cgi-bin/koha/memberentry.pl?type=Add

  [Mon Feb 24 16:36:11 2003] [error] [client 172.22.23.12] ERROR: Date::Manip unable to determine Ti

  meZone., referer: http://172.22.23.200:8080/cgi-bin/koha/memberentry.pl?type=Add

  [Mon Feb 24 16:36:11 2003] [error] [client 172.22.23.12]        Date::Manip::Date_TimeZone called

  at /usr/lib/perl5/site_perl/5.8.0/Date/Manip.pm line 629, referer: http://172.22.23.200:8080/cgi-b

  in/koha/memberentry.pl?type=Add

  [Mon Feb 24 16:36:11 2003] [error] [client 172.22.23.12]        Date::Manip::Date_Init('DateFormat

  =metric') called at /usr/local/koha/intranet/cgi-bin/newmember.pl line 17, referer: http://172.22.

  23.200:8080/cgi-bin/koha/memberentry.pl?type=Add

   

  Can anybody help in solving this problem.

   

  Thanks in advance.

   

  A. Rosunee

  University of Mauritius

   

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20030225/8d22765b/attachment-0001.htm


More information about the Koha mailing list