#1545 fix UndefinedError: 'strftime' is undefined

v1.0.0
closed
sf-2 (994)
General
nobody
2015-08-20
2011-02-22
No

e.g. http://sourceforge.net/p/c-3/svn/18/tree/

Module /var/local/allura/Allura/allura/templates/widgets/repo/tree_widget.html:33 in top-level template code
<<          </a>
             </td>
             <td>{{lib.abbr_date(dirent.last_commit.date)}}</td>
             <td>
               {% if dirent.last_commit.author_url %}
>>  <td>{{lib.abbr_date(dirent.last_commit.date)}}</td>
Module /var/local/allura/Allura/allura/templates/jinja_master/lib.html:59 in template
<<  {% macro abbr_date(start_time) %}
           <span title="{{start_time.strftime('%a %b %d, %Y %I:%M %p UTC')}}">{{h.ago(start_time)}}</span>
       {% endmacro %}
>>  <span title="{{start_time.strftime('%a %b %d, %Y %I:%M %p UTC')}}">{{h.ago(start_time)}}</span>
UndefinedError: 'strftime' is undefined

Related

Tickets: #1566

Discussion

  • Paul Sokolovsky - 2011-02-22
    • assigned_to: Paul Sokolovsky
     
  • Paul Sokolovsky - 2011-02-22

    Fix for 500 is in ps/1545. It's still interesting why SVN returns None as date for some entries. That's worth looking into, because current showing "unknown" is this case may be not ideal.

    • status: open --> code-review
    • assigned_to: Paul Sokolovsky --> Dave Brondsema
     
  • Paul Sokolovsky - 2011-02-22
    • status: code-review --> in-progress
    • assigned_to: Dave Brondsema --> Paul Sokolovsky
     
  • Paul Sokolovsky - 2011-02-22

    Fix for 500 merged to dev, keeping open hoping to look into SVN's date=None issue.

     
  • Dave Brondsema

    Dave Brondsema - 2011-02-24
    • size: 2 --> 1
     
  • Mark Ramm - 2011-02-25
    • status: in-progress --> closed
    • size: 1 --> 2
     
  • Mark Ramm - 2011-02-25

    I'll make a new ticket for the SVN date is None issue.

     

Log in to post a comment.