Support » Plugin: HD Quiz » Local Time

  • Resolved W Zaman

    (@wzaman)


    The time in the result section doesn’t show local time. How I can see the local time in the result section.

    My time zone is +6(Dhaka, Bangladesh).

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    Maybe the answer to your question s here :
    https://wordpress.org/support/topic/date-time-format-hd-quiz-results/
    I adapted the time on my website.

    PS for Dylan : I see no search windows on your other forum : https://harmonicdesign.ca/hd-quiz/
    And Google gives just 1 result with “site:”.

    Thread Starter W Zaman

    (@wzaman)

    Thank you @michel92 and @harmonic_design
    Finally, solved the problem.

    For myself

    From you admin area, go to plugins -> plugin editor. From there, select the Save Results Light addon from the dropdown on the top right. Now navigate to ./includes/functions.php file.

    On lines 60 and 61, you will see:

    ` // save the date and time
    $result->datetime = date(‘m-d-Y h:i:s a’, time());`
    replace this with:

    `// save the date and time
    date_default_timezone_set(‘Asia/Dhaka’);
    $result->datetime = date(‘m-d-Y h:i:s a’, time());`

    • This reply was modified 3 years, 7 months ago by W Zaman.
    • This reply was modified 3 years, 7 months ago by W Zaman.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Local Time’ is closed to new replies.