Git Product home page Git Product logo

Comments (2)

curioustechizen avatar curioustechizen commented on August 14, 2024

This seems to be a change in the implementation of the underlying DateUtils method in Android. If you see the screenshot I posted in the README, it shows 15 mins ago (I don't remember what API version this was). The same example when I run on API 25 emulator shows 15 min. ago.

I'm guessing Android changed the implementation of DateUtils to add the . after abbreviated words like min and hrs when the flag FORMAT_ABBREV_RELATIVE is used.

If I remove the flag from here, and set it to 0, then I see 15 minutes ago, 3 hours ago etc.

Unfortunately, it is not easy to override the implementation of DateUtils class. I will consider exposing the flags so you can control whether you want to see the abbreviation or not.

For now I don't have any work-around for you, other than to search for hrs. and remove the . manually but this is error-prone.

from android-ago.

latheesh123 avatar latheesh123 commented on August 14, 2024

its occurring for only hrs and min but for days and months its working fine. I am working on emulator with API 27.

from android-ago.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.