Date fields keep reverting to "Nov 30, -1"

This topic contains 5 replies, has 3 voices, and was last updated by  Stiofan O’Connor 9 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #53314

    jimmymoto
    Full Member
    Post count: 91

    This is related to a previous support post I made:
    https://wpgeodirectory.com/support/topic/date-fields-keep-messing-up/

    Whenever I edit a post from the BACK-end that does not have a value set for a date field, a value of “Nov 30, -1” is autofilled. If I forget to erase the date field before saving, it shows up in the front end as “Nov 30, 2015”.

    If I edit a post from the FRONT-end that does not already have a date set in a date field [and has not been previously edited], “Nov 30, -1” is autofilled. When I erase this erroneous field and save, then edit again from front end, it is now auto-populated with “Oct 15, 2015” (today’s date a month from now?).

    My login info has changed, will post in a private message.

    #53316

    jimmymoto
    Full Member
    Post count: 91
    This reply has been marked as private.
    #53362

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ve ask to the developers to look into it and let us know as soon as possible.

    Thanks

    #53407

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Datepicker custom field can show wrong date on edit if left blank on save – FIXED

    If you want the fix now, you can add this one line to your core:
    https://github.com/GeoDirectory/geodirectory/blob/65af6f1228cfce30e66cfb011b7b1cbc47d26a51/geodirectory-functions/custom_fields_functions.php#L1730

    Thanks,

    Stiofan

    #53520

    jimmymoto
    Full Member
    Post count: 91

    Awesome, thanks!

    #53521

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    🙂

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount