Problem Statement: As per the circulation rule, checkout duration is set to 10 days. It is also set that, checkout date must be a library open day. So if there any holidays, checkout days may must be shifted to the next opening day. 

When a book has been checked out on 02 October 2019, Koha showing the due date in 11 October 2019, which is incorrect. 

 

Problem Identification Check list:  To define which is the cause please invest the following things: 

  1. Circulation rules are correct for the patrons and item types
  2. Browsing computer date
  3. Server date

Problem: After through cheking:

(1) The circulation rules are ok.

(2) Browsing computer date showing Wed 02 Oct 2019 02:09:47 AM PDT  is also ok. 

(3) Server date is the output of date command in command line interface Wed 01 Oct 2019 02:09:47 AM PDT

So the problem is in server date

 

Solution: Install ntp module by running apt install ntp After installing ntp. you will see the server date again by typing date command in ssh shell. You will get out put as Wed 02 Oct 2019 02:09:47 AM PDT.

Here your date is still not correct, because it is showing PDT and date is 1 hour behind local time zone +6.

Set the local time zone:

  1. edit the file nano /etc/ntp.conf
  2. add the correct timezone from ntp site. (https://www.pool.ntp.org/zone/bd)
  3. add the following zone before the line starting with pool 0.debian.pool.ntp.org iburst: 0.bd.pool.ntp.org 1.asia.pool.ntp.org 2.asia.pool.ntp.org 3.asia.pool.ntp.org and save the file. Now restart ntp by running: service ntp restart. Hope it worked.