Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue With displaying 23 hours and converting to Date Format #98

Open
kishangandhi opened this issue Aug 7, 2018 · 0 comments
Open

Comments

@kishangandhi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant