mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
split remaining utilities from shared
This commit is contained in:
9
common/script/libs/friendlyTimestamp.js
Normal file
9
common/script/libs/friendlyTimestamp.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import moment from 'moment';
|
||||
|
||||
/*
|
||||
Friendly timestamp
|
||||
*/
|
||||
|
||||
module.exports = function(timestamp) {
|
||||
return moment(timestamp).format('MM/DD h:mm:ss a');
|
||||
};
|
||||
Reference in New Issue
Block a user