← Back to team overview

anewt-developers team mailing list archive

[Branch ~uws/anewt/anewt.uws] Rev 1736: [datetime] Fix typo in abbreviated month names regex

 

------------------------------------------------------------
revno: 1736
committer: Wouter Bolsterlee <uws@xxxxxxxxx>
branch nick: anewt.uws
timestamp: Tue 2009-10-20 23:34:36 +0200
message:
  [datetime] Fix typo in abbreviated month names regex
  
  This fixes parsing RFC2822 dates (and other formats) in December.
modified:
  core/datetime.lib.php


--
lp:anewt
https://code.launchpad.net/~uws/anewt/anewt.uws

Your team Anewt developers is subscribed to branch lp:anewt.
To unsubscribe from this branch go to https://code.launchpad.net/~uws/anewt/anewt.uws/+edit-subscription.
=== modified file 'core/datetime.lib.php'
--- core/datetime.lib.php	2009-08-02 20:26:54 +0000
+++ core/datetime.lib.php	2009-10-20 21:34:36 +0000
@@ -41,7 +41,7 @@
 /** Regular expression for abbreviated day names */
 define('DATETIME_RE_DAY_NAMES_ABBR',    '(Sun|Mon|Tue|Wed|Thu|Fri|Sat)');
 /** Regular expression for abbreviated month names */
-define('DATETIME_RE_MONTH_NAMES_ABBR',   '(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dev)');
+define('DATETIME_RE_MONTH_NAMES_ABBR',   '(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)');
 /** Regular expression for timezones */
 define('DATETIME_RE_TIMEZONE',          '(GMT|[\+\-][012][0-9](:?[03]0)?)');