mirror of
https://github.com/flarum/core.git
synced 2025-10-10 22:44:25 +02:00
* Replace gulp with webpack and npm scripts for JS compilation * Set up Travis CI to commit compiled JS * Restructure `js` directory; only one instance of npm, forum/admin are "submodules" * Refactor JS initializers into Application subclasses * Maintain partial compatibility API (importing from absolute paths) for extensions * Remove minification responsibility from PHP asset compiler * Restructure `less` directory
16 lines
335 B
JavaScript
16 lines
335 B
JavaScript
/**
|
|
* The `fullTime` helper displays a formatted time string wrapped in a <time>
|
|
* tag.
|
|
*
|
|
* @param {Date} time
|
|
* @return {Object}
|
|
*/
|
|
export default function fullTime(time) {
|
|
const mo = moment(time);
|
|
|
|
const datetime = mo.format();
|
|
const full = mo.format('LLLL');
|
|
|
|
return <time pubdate datetime={datetime}>{full}</time>;
|
|
}
|