field type datetime, built-in callendar setting wrong date, always -1 hour

field type datetime, built-in callendar setting wrong date, always -1 hour

lolzoruslockuslolzoruslockus Posts: 8Questions: 2Answers: 0

Hello, I am currently building add/update field list to work with my table. I've read manuals and I was looking to solve this problem by my own. I spent an evening figuring out what's wrong, no luck.

My problem is: when I select a date by using built-in calendar the date I receive in input is wrong. It is always -1 hour.
I thought I need to set up timezone somewhere but I can't find anything.

here is official example, same problem

https://editor.datatables.net/examples/dates/time.html

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    This is an error in 1.5.2. 1.5.3 should be released tomorrow with the fix, but if you are happy to try it out locally I can send the update by e-mail today. If so, can I use the e-mail address that your account is registered with?

    Thanks,
    Allan

  • lolzoruslockuslolzoruslockus Posts: 8Questions: 2Answers: 0

    Hi Allan,

    it would be great if you could share this fix with me earlier! Email associated with my account is correct of course.

    Thanks very much,

    Regards

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    E-mail just sent.

    Allan

  • lolzoruslockuslolzoruslockus Posts: 8Questions: 2Answers: 0

    Hello, thank you for quick response.

    Unfortunately fix doesn't seem to work for me.

    I sent you link to my project via email.

    example field that I use

                {
                    label: "suggest time",
                    name: "time_sug",
                    type: "datetime",           
                    format: "YYYY-MM-DD HH:mm"
                },
    

    Best Regards,
    Mat

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Update sent by e-mail. It really should be fixed this time!

    Regards,
    Allan

  • lolzoruslockuslolzoruslockus Posts: 8Questions: 2Answers: 0

    I've uploaded the file. Doesn't seem to fix the issue.

    Best Regards,
    Mat

  • lolzoruslockuslolzoruslockus Posts: 8Questions: 2Answers: 0
    edited November 2015

    Allan fixed the issue, thanks again. As Allan mentioned above fix will be coming in next release.

    Best Regards, Mat

This discussion has been closed.