GravityView icon indicating copy to clipboard operation
GravityView copied to clipboard

Add possibility to show relative times in GravityView fields

Open tobifjellner opened this issue 1 year ago • 1 comments

A customer has suggested that we should add possibility to show timestamps as relative time/relative date

i.e. "Yesterday", "2 hours ago", "Tomorrow", etc.

By UI setting and/or field code parameter.

https://developer.wordpress.org/reference/functions/human_time_diff/ should make this relatively easy.

The tricky part would of course be that only timestamps are truly date and time in one in Gravity Forms.

tobifjellner avatar Feb 19 '24 11:02 tobifjellner

FreeScout #77495.
https://support.gravitykit.com/conversation/77495?folder_id=4

floatytheastronaut avatar Feb 19 '24 12:02 floatytheastronaut

@rafaehlers Please test to see if :human works with all date fields, not just {date_created} and {date_updated}.

zackkatz avatar Aug 19 '24 15:08 zackkatz

It doesn't, unfortunately:

image

rafaehlers avatar Aug 24 '24 21:08 rafaehlers