From a2e8f5b505a7a14a4ed960313c4baf699fd1f4bb Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Wed, 28 Jan 2015 18:51:40 +0000 Subject: [PATCH] 6.2.6 (2015-01-28) - Bug #1008 "UTC offset sing breaks PDF/A-1b compliance" was fixed. --- CHANGELOG.TXT | 3 +++ README.TXT | 4 ++-- composer.json | 2 +- include/tcpdf_static.php | 2 +- tcpdf.php | 12 ++++++------ 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 5625dc1..2cfb85a 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +6.2.6 (2015-01-28) + - Bug #1008 "UTC offset sing breaks PDF/A-1b compliance" was fixed. + 6.2.5 (2015-01-24) - Bug #1019 "$this in static context" was fixed. - Bug #1015 "Infinite loop in getIndirectObject method of parser" was fixed. diff --git a/README.TXT b/README.TXT index b8deb9f..d051393 100644 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.2.5 -Release date: 2015-01-24 +Version: 6.2.6 +Release date: 2015-01-28 Author: Nicola Asuni Copyright (c) 2002-2015: diff --git a/composer.json b/composer.json index ca4e0bf..ba0520d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "6.2.5", + "version": "6.2.6", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents and barcodes.", diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index da0a5e7..e947832 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -55,7 +55,7 @@ class TCPDF_STATIC { * Current TCPDF version. * @private static */ - private static $tcpdf_version = '6.2.5'; + private static $tcpdf_version = '6.2.6'; /** * String alias for total number of pages. diff --git a/tcpdf.php b/tcpdf.php index e5d314c..b31e58b 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 6.2.5 + * @version 6.2.6 */ // TCPDF configuration @@ -128,7 +128,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 6.2.5 + * @version 6.2.6 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -9537,13 +9537,13 @@ class TCPDF { $dcdate = TCPDF_STATIC::getFormattedDate($this->doc_creation_timestamp); $doccreationdate = substr($dcdate, 0, 4).'-'.substr($dcdate, 4, 2).'-'.substr($dcdate, 6, 2); $doccreationdate .= 'T'.substr($dcdate, 8, 2).':'.substr($dcdate, 10, 2).':'.substr($dcdate, 12, 2); - $doccreationdate .= '+'.substr($dcdate, 15, 2).':'.substr($dcdate, 18, 2); + $doccreationdate .= substr($dcdate, 14, 3).':'.substr($dcdate, 18, 2); $doccreationdate = TCPDF_STATIC::_escapeXML($doccreationdate); // convert doc modification date format $dmdate = TCPDF_STATIC::getFormattedDate($this->doc_modification_timestamp); $docmoddate = substr($dmdate, 0, 4).'-'.substr($dmdate, 4, 2).'-'.substr($dmdate, 6, 2); $docmoddate .= 'T'.substr($dmdate, 8, 2).':'.substr($dmdate, 10, 2).':'.substr($dmdate, 12, 2); - $docmoddate .= '+'.substr($dmdate, 15, 2).':'.substr($dmdate, 18, 2); + $docmoddate .= substr($dmdate, 14, 3).':'.substr($dmdate, 18, 2); $docmoddate = TCPDF_STATIC::_escapeXML($docmoddate); $xmp .= "\t\t".''."\n"; $xmp .= "\t\t\t".''.$doccreationdate.''."\n";