/[drupal]/contributions/modules/booking_timeslots/booking_timeslots.inc
ViewVC logotype

Diff of /contributions/modules/booking_timeslots/booking_timeslots.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.2, Tue Mar 31 09:49:33 2009 UTC revision 1.1.2.3, Wed Apr 1 10:06:39 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: booking_timeslots.inc,v 1.1.2.1 2009/03/30 10:08:45 kenorb Exp $  // $Id: booking_timeslots.inc,v 1.1.2.2 2009/03/31 09:49:33 kenorb Exp $
3    
4  // author: kenorb@gmail.com  // author: kenorb@gmail.com
5    
# Line 26  function booking_timeslots_add_time($dat Line 26  function booking_timeslots_add_time($dat
26    foreach ($rules as $type => $how_much) {    foreach ($rules as $type => $how_much) {
27      $arr[$type] += $how_much;      $arr[$type] += $how_much;
28    }    }
29    $new_datetime = gmdate('Y-m-d H:i:s', mktime($arr['hour'], $arr['minute'], $arr['second'], $arr['month'], $arr['mday'], $arr['year']));    $new_datetime = date('Y-m-d H:i:s', mktime($arr['hour'], $arr['minute'], $arr['second'], $arr['month'], $arr['mday'], $arr['year']));
30    return is_array($datetime) ? booking_timeslots_convert_date_to_arr($new_datetime) : $new_datetime;    return is_array($datetime) ? booking_timeslots_convert_date_to_arr($new_datetime) : $new_datetime;
31  }  }
32    

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2