r13930 by fschmid - Fixed Bug #8293: "Missing calendar date in PDF field"

scribus-commit scribus-commit at lists.scribus.net
Thu Aug 27 11:10:31 CEST 2009


Revision: 13930
Author: fschmid
Date: 2009-08-27T09:07:11.045672Z
Commit message: Fixed Bug #8293: "Missing calendar date in PDF field"

Changeset: 
M  /branches/Version135/Scribus/scribus/annot.cpp

Diffs:
Index: scribus/annot.cpp
===================================================================
--- scribus/annot.cpp	(revision 13929)
+++ scribus/annot.cpp	(revision 13930)
@@ -877,7 +877,7 @@
 	LayoutFN1c->setMargin( 0 );
 	Format0c = new QComboBox(DateGroup);
 	QString tmp_form[] = {"m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yy-mm-dd",
-	                    "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:MM tt", "m/d/yy HH:MM"};
+	                    "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:MM tt", "m/d/yy HH:MM", "yyyy-mm-dd"};
 	size_t array_form = sizeof(tmp_form) / sizeof(*tmp_form);
 	/* PFJ - 28/02/04 - Altered from uint to int and var name */
 	for (uint prop = 0; prop < array_form; ++prop)
@@ -1466,6 +1466,8 @@
 		tmp = "M/d/yy h:mm ap";
 	if (ds == "m/d/yy HH:MM")
 		tmp = "M/d/yy hh:mm";
+	if (ds == "yyyy-mm-dd")
+		tmp = "yyyy-MM-dd";
 	TextDa1->setText( tr("Example:")+" "+dt.toString(tmp));
 }
 




More information about the scribus-commit mailing list