-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
I am overriding the timeAgoSettings as follows:
timeAgoSettings.breakpoints = {
secondsToMinute: 60, // in seconds
secondsToMinutes: 120, // in seconds
minutesToHour: 59, // in minutes
minutesToHours: 120, // in minutes
hoursToDay: 24, // in hours
hoursToDays: 48, // in hours
daysToMonth: 30, // in days
daysToMonths: 60, // in days
daysToYear: 365, // in days
yearToYears: 2 // in year
}
timeAgoSettings.strings['en_US'] = {
prefixAgo: null,
prefixFromNow: null,
suffixAgo: '',
suffixFromNow: 'from now',
seconds: 'Just now',
minute: 'a minute ago',
minutes: '%d minutes ago',
hour: 'an hour ago',
hours: '%d hours ago',
day: 'a day',
days: '%d days',
month: 'a month',
months: '%d months',
year: 'a year',
years: '%d years',
numbers: []
};
And I am displaying date: 'MMM dd @ HH:mm' format after 24 hours. Everything works fine until "22 hours ago" But after that I am seeing the "23 hours ago" only for 30 minutes and 24 hours for other 30 minutes, And then date format is changing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels