r1207 - trunk/core/Form

From: <voxusAT@ATshadanakar.org>
Date: Wed, 25 Jan 2006 04:49:30 +0300 (MSK)

Author: voxus
Date: 2006-01-25 04:49:29 +0300 (Wed, 25 Jan 2006)
New Revision: 1207

Modified:
   trunk/core/Form/PrimitiveDate.class.php
Log:
+ seconds support

Modified: trunk/core/Form/PrimitiveDate.class.php
===================================================================
--- trunk/core/Form/PrimitiveDate.class.php 2006-01-25 01:37:07 UTC (rev 1206)
+++ trunk/core/Form/PrimitiveDate.class.php 2006-01-25 01:49:29 UTC (rev 1207)
@@ -110,11 +110,14 @@
                                 if (isset($scope[$this->name][self::MINUTES]))
                                         $minutes = (int) $scope[$this->name][self::MINUTES];
 
+ if (isset($scope[$this->name][self::SECONDS]))
+ $seconds = (int) $scope[$this->name][self::SECONDS];
+
                                 try {
                                         $stamp = mktime(
- $hours, $minutes, 0,
- $scope[$this->name][self::MONTH],
- $scope[$this->name][self::DAY],
+ $hours, $minutes, $seconds,
+ (int) $scope[$this->name][self::MONTH],
+ (int) $scope[$this->name][self::DAY],
                                                 (int) $scope[$this->name][self::YEAR]
                                         );
                                 } catch (BaseException $e) {
Received on Wed Jan 25 2006 - 04:49:30 MSK

This archive was generated by hypermail 2.2.0 : Sat Oct 27 2007 - 19:44:48 MSD