Jaxel Well-known member Jul 19, 2024 #1 Code: <span data-xf-init="tooltip" title="{{ phrase('date_x_at_time_y', { 'date': date($cache_date), 'time': time($cache_date) }) }}"> This is what I am doing right now to add a time tooltip in a template. Is there a better way to do this?
Code: <span data-xf-init="tooltip" title="{{ phrase('date_x_at_time_y', { 'date': date($cache_date), 'time': time($cache_date) }) }}"> This is what I am doing right now to add a time tooltip in a template. Is there a better way to do this?
Jeremy P XenForo developer Staff member Jul 19, 2024 #2 Using {{ date_time($cache_date) }} should be equivalent I think.
Jaxel Well-known member Jul 20, 2024 #3 Jeremy P said: Using {{ date_time($cache_date) }} should be equivalent I think. Click to expand... You see... I'm stupid. I was trying to do datetime().
Jeremy P said: Using {{ date_time($cache_date) }} should be equivalent I think. Click to expand... You see... I'm stupid. I was trying to do datetime().