smart-village-solutions / smart-village-app-cms

A CMS based on JSON schema of smart-village api
GNU General Public License v3.0
7 stars 2 forks source link

fix: sorting function for date fields #244

Closed hui00 closed 1 year ago

hui00 commented 1 year ago

This Pull Request introduces sorting with HTML data-sort (timestamp-integers) and remove moment.js

  1. add sort for created_at and updated_at columns
  2. add sort for date_start, date_end, and to_end columns
  3. remove moment-related code and dependencies

SVA-1122

donni106 commented 1 year ago

You forgot POIs:

<td><%= toLocalDateTime(poi.updated_at) %></td>
<td><%= toLocalDateTime(poi.created_at) %></td>

I will adjust that.

donni106 commented 1 year ago

And Tours:

<td><%= toLocalDateTime(tour.updated_at) %></td>
<td><%= toLocalDateTime(tour.created_at) %></td>

I will adjust as well.