fix(smarttime.units): Fix issue in getMilliSecondsAsHumanReadableAgoTime
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smarttime',
|
||||
version: '4.1.0',
|
||||
version: '4.1.1',
|
||||
description: 'Provides utilities for advanced time handling including cron jobs, timestamps, intervals, and more.'
|
||||
}
|
||||
|
@ -69,5 +69,5 @@ export const getMilliSecondsAsHumanReadableString = (milliSecondsArg: number): s
|
||||
};
|
||||
|
||||
export const getMilliSecondsAsHumanReadableAgoTime = (timeStampArg: number): string => {
|
||||
return plugins.dateFns.formatDistanceToNow(timeStampArg);
|
||||
return plugins.dateFns.formatDistanceToNow(new Date(timeStampArg));
|
||||
}
|
||||
|
Reference in New Issue
Block a user