Changeset 180
- Timestamp:
- 04/20/08 03:26:53 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/oo_indexer/lib/picolena/templates/app/models/document.rb
r178 r180 72 72 # Useful to know how old a document is, and to which version the cache corresponds. 73 73 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') 75 75 end 76 76
