Dates in a request off by one

Home Forums HRM Dates in a request off by one

Viewing 2 reply threads
  • Author
    Posts
    • #76126
      feisal
      Participant

      When I make a leave request say from 6 to the 10 July.
      The dates show up as from the 5 July to the 9 July before the request is submitted
      In the demo on WR-ERP website the dates show up correctly so there must be something different I have done but I cannot find it

    • #76129
      Mehedi Hasan
      Moderator

      Hello Feisal

      I understand the problem and that can happen when it doesn’t match the followings:

      1. Your site timezone
      2. Your computer set timezone
      3. Your server timezone

      These 3 need to match. Otherwise, these kinds of problems can happen. I can assure you it’s not a problem with the WPERP core.

      Thanks

    • #76136
      feisal
      Participant

      In /usr/share/wordpress/wp-settings.php, I changed
      date_default_timezone_set( ‘UTC’ );
      to
      date_default_timezone_set( ‘America/Port_of_Spain’ );

      The dates work correctly now.
      Thank you

Viewing 2 reply threads
  • You must be logged in to reply to this topic.