Paul J. Lucas has proposed merging lp:~paul-lucas/zorba/pjl-misc into lp:zorba.

Commit message:
Fixed bug 1210628.

Requested reviews:
  Paul J. Lucas (paul-lucas)

For more details, see:
https://code.launchpad.net/~paul-lucas/zorba/pjl-misc/+merge/179554

Fixed bug 1210628.
-- 
https://code.launchpad.net/~paul-lucas/zorba/pjl-misc/+merge/179554
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog	2013-08-09 08:27:30 +0000
+++ ChangeLog	2013-08-09 23:06:43 +0000
@@ -35,6 +35,7 @@
   * Fixed bug #1162631 (format-integer 'w' format of negative numbers)
   * Fixed bug #942171 (file module to allow for arbitrary encodings)
   * Fixed bug #1192285 (Have JSON token know number subtype)
+  * Fixed bug #1210628 (file:last-modified returns wrong month)
   * Fixed bug #1190261 (relative paths bug in file module)
   * Fixed bug #1189798 (Update core module "errors")
   * Fixed bug #1187537 (Eliminate (or at least reduce) use of MAX_PATH)

=== modified file 'include/zorba/item_factory.h'
--- include/zorba/item_factory.h	2013-06-21 01:23:32 +0000
+++ include/zorba/item_factory.h	2013-08-09 23:06:43 +0000
@@ -314,12 +314,12 @@
       /** \brief Creates a DateTime Item
        *         see [http://www.w3.org/TR/xmlschema-2/#dateTime]
        *
-       * @param aYear short-valued representation of the year.
-       * @param aMonth short-valued representation of the month.
-       * @param aDay short-valued representation of the day.
-       * @param aHour short-valued representation of the hour.
-       * @param aMinute short-valued representation of the minute.
-       * @param aSecond double-valued representation of the seconds and fractional seconds.
+       * @param aYear the year.
+       * @param aMonth the month [1-12].
+       * @param aDay the day [1-31].
+       * @param aHour the hour [0-23].
+       * @param aMinute the minute [0-59].
+       * @param aSecond the seconds and fractional seconds.
        * @param aTimeZone the number of seconds east of the prime meridian.
        * @return The DateTime Item.
        */
@@ -331,12 +331,12 @@
       /** \brief Creates a DateTime Item without setting a time zone.
        *         see [http://www.w3.org/TR/xmlschema-2/#dateTime]
        *
-       * @param aYear short-valued representation of the year.
-       * @param aMonth short-valued representation of the month.
-       * @param aDay short-valued representation of the day.
-       * @param aHour short-valued representation of the hour.
-       * @param aMinute short-valued representation of the minute.
-       * @param aSecond double-valued representation of the seconds and fractional seconds.
+       * @param aYear the year.
+       * @param aMonth the month [1-12].
+       * @param aDay the day [1-31].
+       * @param aHour the hour [0-23].
+       * @param aMinute the minute [0-59].
+       * @param aSecond the seconds and fractional seconds.
        * @return The DateTime Item.
        */
       virtual Item

=== modified file 'modules/org/expath/ns/file.xq.src/file.cpp'
--- modules/org/expath/ns/file.xq.src/file.cpp	2013-08-05 22:12:13 +0000
+++ modules/org/expath/ns/file.xq.src/file.cpp	2013-08-09 23:06:43 +0000
@@ -349,7 +349,7 @@
       new SingletonItemSequence(
         module_->getItemFactory()->createDateTime(
           1900 + lT.tm_year,
-          lT.tm_mon,
+          lT.tm_mon + 1,
           lT.tm_mday,
           lT.tm_hour,
           lT.tm_min, 

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to