Support » Plugin: Events Manager » January 1970

  • Resolved Tiago “3ple”

    (@iam3ple)


    A user is experiencing this weird thing:
    all events are changing from the normal date to January 01, 1970.
    I went and changed those events to another date, but once she goes and edits them, they all go back to Jan 01 1970…

    What is causing this?

    Thanks

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Patrick

    (@duisterdenhaag)

    jQuery falls back to 1970-01-01 if there is an error or if the input is invalid or empty.

    Please check your browser console. Also set WordPress in Debugging mode to log any errors.

    Plugin Support timrv

    (@timrv)

    Hello,

    Please do check that you have also correct formats on Date/Time Settings. Events > Settings > Formatting > Date/Time (Specially the “Date Picker Format” field)

    For reference Here’s my config for that page: https://monosnap.com/file/Nu2jgTqhJosA1R4KarD2Pe9HqB8L5F

    @duisterdenhaag sorry, that is a bit too technical for me…
    can you please explain it in “layman’s terms” what you mean by input is invalid or empty?

    @timrv all my other events are showing up properly, just since yesterday with a particular user that this is happening. Also, when I go to myPHP admin, the dates are correct…

    I will check the link you sent, but again, everything else is working. the issue is with just one user and only with the front and back end, not the database itself…

    @timrv this is what I have: https://snag.gy/9EvKsl.jpg

    and again, it’s been working just fine, until last night/today with only one user. the database shows the correct date, though

    Patrick

    (@duisterdenhaag)

    Sounds like a problem at the user’s end then.

    @duisterdenhaag my guess is that this is happening because I created this account myself using the Users tab inside WordPress. This is someone who’s helping me populate my website with events and so instead of her creating a new account the usual way, I just went and created it for her. Maybe that was the mistake. Do you think there’s a relationship between the two? If so, why is that?

    Also, what’s weird is that one of the events she posted, is showing the correct date, not all of them…

    Anyway, I already told her to create a new account and let’s see if that fixes the issue 🙂

    If you see that there’s a relationship between the two, please let me know why…

    thanks 😀

    Hey @duisterdenhaag and @timrv

    So we figured it out and I wanted to know how I can fix this:
    My friend was inserting the time by hand, so when she clicked the field, it wold show the dropdown with all the times available (not the date) and she would type by hand, 8 pm, for example.

    That was causing it to go to 1970.

    Now my question is: why was that?
    Also: how can I prevent users from typing on both date and time and just use the boxes that open up?

    Thank you in advance!

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can modify template file at events-manager/templates/forms/event/when.php then use readonly=”readonly” at around lines 9 & 12

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

    eg. wp-content/themes/Your Theme/plugins/events-manager/forms/event/when.php

    @angelo_nwl that worked like a charm!!! 🙂 thank you so much! you’re the man!
    I used on both date and time (line 9, 12, 17 and 19)

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.