Menu

#83 strange duration conversion from database

closed-fixed
Jon Iles
None
5
2009-03-25
2009-03-25
No

I found strange problem. I have a project with duration set to 1
minute, 1 hour, 1 day, 1 week and 1 month. this project is stored in
db. I need to read duration over mpd into my application, but when I
do this I get following durations:
(I've used Duration.convertUnits() to convert it into minutes or hours
respectively)
1 minute ~ 10 minutes
1 hour ~ 600 hours
1 day ~ 8 hours (this looks fine)
1 week ~ 40 hours (this looks fine too)
1 month ~ 15 360 000 hours

Discussion

  • Jon Iles

    Jon Iles - 2009-03-25

    Hi,

    the code now in CVS fixes this.

    Cheers!

    Jon

     
  • Jon Iles

    Jon Iles - 2009-03-25
    • assigned_to: nobody --> joniles
    • summary: strange duration conversion --> strange duration conversion from database
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB