https://bugzilla.wikimedia.org/show_bug.cgi?id=30857
Matthew Flaschen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected], | |[email protected] --- Comment #26 from Matthew Flaschen <[email protected]> --- (In reply to Yuvi Panda from comment #13) > 2. Have JS (top loaded?) look for any element with the class added in (1), > and then replace it with an appropriate relative time A JavaScript library for generating such a relative time string in a consistent way would already be useful. (GettingStarted has a need for it for one of our experiments, for example). MobileFrontend has custom code for displaying relative times. momentjs is in core, and has fromNow (http://momentjs.com/docs/#/displaying/fromnow/). If that suits our needs, we could standardize on that. (If you follow that link, there is a table showing how it works). Otherwise, I think we should pick an algorithm, put it in core, and use it consistently, including MobileFrontend. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
