Support » Plugin: Dynamic User Directory » Dates showing wrong – DUD expecting Unix timestamp

  • Resolved johneer

    (@johneer)


    Hi,
    I’m running DUD on my website and recently I found out the birthdays of my users are showing wrong. I even think that it was working fine a few days ago but I’m not absolutely sure about this. I’m using advanced custom fields plugin to add birthday to a user. When I look in the database, the birthday is stored as yyyymmdd. DUD is evidently expecting this to be a unix timestamp, so all my users are displayed with birthdays in August 1970. I am using another plugin that uses the birthday data to show upcoming birthday and it works just fine. Only DUD thinks is’t a Unix timestamp. Is this something new or can I do something about it?
    I would also appreciate to be able to display the date in different formats because in my country, we don’t use slashes in the date. I would need dd.mm.yyyy, but that’s not that important now. The first thing is a real problem.
    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sarah Giles

    (@sarah_dev)

    Hi johneer,

    Thanks for alerting me to this issue. Right now the code assumes that if the date field is numeric then it is a Unix timestamp. But it clearly needs to account for non-Unix date fields that are not stored in the typical MySQL timestamp format.

    I will correct this issue in the next update, which I am hoping to release within the next 4-6 weeks.

    Best Regards,
    Sarah

    Thank you very much. Looking forward to the update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dates showing wrong – DUD expecting Unix timestamp’ is closed to new replies.