Changeset 180

Show
Ignore:
Timestamp:
04/20/08 03:26:53 (7 months ago)
Author:
eric.dumin..@gmail.com
Message:

Fixed wrong Regexp for Document#date.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/oo_indexer/lib/picolena/templates/app/models/document.rb

    r178 r180  
    7272  # Useful to know how old a document is, and to which version the cache corresponds. 
    7373  def date 
    74     from_index[:date].sub(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/,'\1-\2-\3 \4:\5:\6') 
     74    from_index[:date].sub(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/,'\1-\2-\3 \4:\5:\6') 
    7575  end 
    7676