[geeklog-cvs] geeklog: Fixed one of the predefined date format strings (bug #0...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Apr 11 08:50:14 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/bdf79bad8819
changeset: 6915:bdf79bad8819
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Apr 11 14:42:39 2009 +0200
description:
Fixed one of the predefined date format strings (bug #0000854)

diffstat:

5 files changed, 9 insertions(+), 2 deletions(-)
public_html/docs/history             |    1 +
sql/mssql_tableanddata.php           |    2 +-
sql/mysql_tableanddata.php           |    2 +-
sql/updates/mssql_1.5.2_to_1.6.0.php |    3 +++
sql/updates/mysql_1.5.2_to_1.6.0.php |    3 +++

diffs (61 lines):

diff -r 6566283deb9f -r bdf79bad8819 public_html/docs/history
--- a/public_html/docs/history	Fri Apr 10 23:33:02 2009 +0200
+++ b/public_html/docs/history	Sat Apr 11 14:42:39 2009 +0200
@@ -11,6 +11,7 @@
 + Comment moderation and editable comments, by Jared Wenerd
 
 Other changes:
+- Fixed one of the predefined date format strings (bug #0000854)
 - Replace Wiki-style formatting in the Daily Digest and when emailing a story
   to a friend (bug #0000837, patch provided by Pawel Szczur)
 - New plugin API function PLG_configChange (feature request #0000694) [Dirk]
diff -r 6566283deb9f -r bdf79bad8819 sql/mssql_tableanddata.php
--- a/sql/mssql_tableanddata.php	Fri Apr 10 23:33:02 2009 +0200
+++ b/sql/mssql_tableanddata.php	Sat Apr 11 14:42:39 2009 +0200
@@ -1272,7 +1272,7 @@
 $_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (10,'%m-%d-%y %H:%M','3-21-99 22:00')";
 $_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (11,'%d-%m-%y %H:%M','21-3-99 22:00')";
 $_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (12,'%m-%d-%y %I:%M%p','3-21-99 10:00PM')";
-$_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (13,'%I:%M%p  %B %D, %Y','10:00PM  March 21st, 1999')";
+$_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (13,'%I:%M%p  %B %e, %Y','10:00PM  March 21, 1999')";
 $_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (14,'%a %b %d, ''%y %I:%M%p','Sun Mar 21, ''99 10:00PM')";
 $_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (15,'Day %j, %I ish','Day 80, 10 ish')";
 $_SQL[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (16,'%y-%m-%d %I:%M','99-03-21 10:00')";
diff -r 6566283deb9f -r bdf79bad8819 sql/mysql_tableanddata.php
--- a/sql/mysql_tableanddata.php	Fri Apr 10 23:33:02 2009 +0200
+++ b/sql/mysql_tableanddata.php	Sat Apr 11 14:42:39 2009 +0200
@@ -587,7 +587,7 @@
 $_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (10,'%m-%d-%y %H:%M','3-21-99 22:00') ";
 $_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (11,'%d-%m-%y %H:%M','21-3-99 22:00') ";
 $_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (12,'%m-%d-%y %I:%M%p','3-21-99 10:00PM') ";
-$_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (13,'%I:%M%p  %B %D, %Y','10:00PM  March 21st, 1999') ";
+$_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (13,'%I:%M%p  %B %e, %Y','10:00PM  March 21, 1999') ";
 $_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (14,'%a %b %d, \'%y %I:%M%p','Sun Mar 21, \'99 10:00PM') ";
 $_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (15,'Day %j, %I ish','Day 80, 10 ish') ";
 $_DATA[] = "INSERT INTO {$_TABLES['dateformats']} (dfid, format, description) VALUES (16,'%y-%m-%d %I:%M','99-03-21 10:00') ";
diff -r 6566283deb9f -r bdf79bad8819 sql/updates/mssql_1.5.2_to_1.6.0.php
--- a/sql/updates/mssql_1.5.2_to_1.6.0.php	Fri Apr 10 23:33:02 2009 +0200
+++ b/sql/updates/mssql_1.5.2_to_1.6.0.php	Sat Apr 11 14:42:39 2009 +0200
@@ -52,6 +52,9 @@
 $_SQL[] = "INSERT INTO {$_TABLES['groups']} (grp_name, grp_descr, grp_gl_core) VALUES ('Comment Submitters', 'Can submit comments', 0);";
 $_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('comment.moderate', 'Ability to moderate comments', 1)";
 $_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('comment.submit', 'Comments are automatically published', 1)";
+
+// fix date format string
+$_SQL[] = "UPDATE {$_TABLES['dateformats']} SET format = '%I:%M%p  %B %e, %Y', description = '10:00PM  March 21, 1999' WHERE dfid = 13";
 
 /**
  * Add new config options
diff -r 6566283deb9f -r bdf79bad8819 sql/updates/mysql_1.5.2_to_1.6.0.php
--- a/sql/updates/mysql_1.5.2_to_1.6.0.php	Fri Apr 10 23:33:02 2009 +0200
+++ b/sql/updates/mysql_1.5.2_to_1.6.0.php	Sat Apr 11 14:42:39 2009 +0200
@@ -51,6 +51,9 @@
 $_SQL[] = "INSERT INTO {$_TABLES['groups']} (grp_name, grp_descr, grp_gl_core) VALUES ('Comment Submitters', 'Can submit comments', 0);";
 $_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('comment.moderate', 'Ability to moderate comments', 1)";
 $_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('comment.submit', 'Comments are automatically published', 1)";
+
+// fix date format string
+$_SQL[] = "UPDATE {$_TABLES['dateformats']} SET format = '%I:%M%p  %B %e, %Y', description = '10:00PM  March 21, 1999' WHERE dfid = 13";
 
 /**
  * Add new config options



More information about the geeklog-cvs mailing list