Unphrased date-time due to race condition in front-end javascript

Xon

Well-known member
Affected version
2.2.15
If you expand the "history" tab on edited content while the page is loading, this will semi-reliably replace a formatted date-time string of Later today at XYZ with later_today_at_x (or other date-time related phrases)

This might explain some cases where the alert pop-up shows unphrased date-time strings.

This looks to be a race condition of XF.phrases being populated and the ajax request finishing and calling XF.setupHtmlInsert. I'm fairly sure this should still happen with XF2.3, but I can't test that.
 
Last edited:
Top Bottom