Does it work with military hours? (24h)

Splash Forums PrettyTime Users Does it work with military hours? (24h)

This topic contains 3 replies, has 2 voices, and was last updated by  rafaeltc 10 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #17856


    Hello everyone!

    I am using PrettyTime 1.0.6 with JSF 2.0 to show the time when a comment has been posted.

    The timestampo into the object is 2011-01-23 19:47:35.721 . the time in my system is 20:00 and my view is showing me “19 hours ago”

    Is there any further configuration needed?



    Sorry.. it was showing “19 hours ago” when it was arround 19:55 here… now it shows “20 hours ago” and the time here is 20:04


    Timestamps should not be dependent on 12hr/24hr time formatting. As long as the java.util.Date() object has the correct timestamp in it (the number of milliseconds since the epoch,) PrettyTime will function normally.

    I’d recommend making sure that your Date() objects are initialized properly. If possible, send me a test-case that demonstrates this problem and I’ll try to work on it.





    Sorry! It was my mistake!

    I was getting the creation date of the wrong object.

    It is working fine.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘PrettyTime Users’ is closed to new topics and replies.

Comments are closed.