Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix sorting by date and by size (in file's view)

  • Loading branch information...
commit 2eb9257a73ef40cd356bb1f0895c5ddb09185fda 1 parent 3f53d75
@Montellese authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/FileItem.cpp
View
4 xbmc/FileItem.cpp
@@ -469,8 +469,8 @@ void CFileItem::Serialize(CVariant& value)
void CFileItem::ToSortable(SortItem &sortable)
{
sortable[FieldPath] = m_strPath;
- sortable[FieldDate] = (m_dateTime.IsValid()) ? m_dateTime.GetAsRFC1123DateTime() : "";
- sortable[FieldSize] = (int) m_dwSize / 1000;
+ sortable[FieldDate] = (m_dateTime.IsValid()) ? m_dateTime.GetAsDBDateTime() : "";
+ sortable[FieldSize] = m_dwSize;
sortable[FieldDriveType] = m_iDriveType;
sortable[FieldStartOffset] = m_lStartOffset;
sortable[FieldStartOffset] = m_lEndOffset;
Please sign in to comment.
Something went wrong with that request. Please try again.