Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you use a non standard format that the strtotime function is capable to convert into timestamp, the total hours is zero and your prices are updated to zero.
in file includes/menu.inc
$items = explode(',', $_POST['items']);
$dates = array(
strtotime($_POST['date'][0] . ' ' . $_POST['time'][0]),
strtotime($_POST['date'][1] . ' ' . $_POST['time'][1]),
);
}
$hours = round(($dates[1] - $dates[0]) / 3600, 2);
Comment | File | Size | Author |
---|---|---|---|
#1 | merci-1064696-1.patch | 795 bytes | _toch |
Comments
Comment #1
_toch CreditAttribution: _toch commentedPlease find in attachment the patch I suggest.
The solution consists to use the function merci_convert_date_popup in order to convert the date considering the used format.
Comment #2
kreynen CreditAttribution: kreynen commentedMost of the pricing settings and UI are being moved to a separate merci_pricing sub-module. This patch was committed there.
http://drupal.org/cvs?commit=503310
Comment #3
darrick CreditAttribution: darrick commented