Revision: 1539
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1539&view=rev
Author:   cimorrison
Date:     2010-10-22 19:25:22 +0000 (Fri, 22 Oct 2010)

Log Message:
-----------
Fixed problem of rounding of days in duration

Modified Paths:
--------------
    mrbs/branches/from_to_bookings/web/Themes/default/header.inc

Modified: mrbs/branches/from_to_bookings/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/from_to_bookings/web/Themes/default/header.inc        
2010-10-22 17:34:55 UTC (rev 1538)
+++ mrbs/branches/from_to_bookings/web/Themes/default/header.inc        
2010-10-22 19:25:22 UTC (rev 1539)
@@ -369,6 +369,7 @@
       var startDate = new Date(startYear, startMonth - 1, startDay, 12);
       var endDate = new Date(endYear, endMonth - 1, endDay, 12);    
       diff = (endDate - startDate)/(24 * 60 * 60 * 1000);
+      diff = Math.round(diff);
       <?php
     }
     ?>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to