Jump to content

Profile Field showing EPOCH date


David Young

Recommended Posts

Posted

I have a custom profile field that defined as a date field.  Since the last upgrade (4.4.2) I've noticed that when displayed on the users profile, it's displayed properly mm/dd/yyyy but when it's displayed under the users information on a post, it's showing the unix epoch date.  I don't know if it was the last update that did it or the one before but it just recently started.

Any thoughts?

Posted

The custom formatting for the field must be using the raw value instead of the formatted value. Edit the custom field in the AdminCP and adjust the formatting to use next to content (there's a helpful field description that will show you the tags you can use).

Posted

So, both are using the same display option; so you are saying I need to change the bottom one to a custom display

image.png.427ef7cfa46d63121bc5efe31e1a4ac0.png

 

I changed the display option for topics to use custom, like so;

image.png.195ca4945aa6c92e2afc86261221d0c7.png

 

Still shows like this in the topics view.  Profile view shows a formatted date.  I tried {$rawContent} and that left it blank in the topic view.

image.png.e48870783d45e2d29ed259d3077d2f0e.pngimage.png.ed21cbfc93fb95babccd3913d3255b53.png

 

I'll dig around some more and see what I can find.

Posted

I might suggest submitting a ticket actually. If you are using "Default formatting" or the formatted "{$content}" variable, the date should be displayed correctly without any extra effort.

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...