Plugin Directory

Changeset 367987 for feedwordpress

Timestamp:
04/01/2011 06:38:45 PM (13 years ago)
Author:
radgeek
Message:

More resilient date handling: in case of failure, try stripping off possible bad time zones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • feedwordpress/trunk/feedtime.class.php

    r318565 r367987  
    1212    } /* FeedTime constructor */
    1313   
    14     function set ($time) {
     14    function set ($time) {
    1515        $this->rep = $time;
    1616        $this->ts = NULL;
     
    2424                // In some versions of PHP, strtotime() does not support
    2525                // the UT timezone. Since UT is by definition within 1
    26                 // second of UTC, we'll just convert it here to avoid
     26                // second of UTC, we'll just convert it to avoid
    2727                // problems.
    2828                $time = preg_replace(
     
    3232                );
    3333                $this->ts = strtotime($time);
     34
     35
     36
     37
     38
     39
    3440            endif;
    3541        endif;
Note: See TracChangeset for help on using the changeset viewer.