Skip to content

Commit

Permalink
no moment
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikov-a committed Nov 23, 2023
1 parent 1f0cccc commit b573efa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions www/nginx/src/opnsense/mvc/app/views/OPNsense/Nginx/ban.volt
Expand Up @@ -38,7 +38,6 @@
</tbody>
</table>
</div>
<script src="{{ cache_safe('/ui/js/moment-with-locales.min.js') }}"></script>
<script>
$(function () {
$("#grid-ban").UIBootgrid(
Expand All @@ -49,8 +48,7 @@ $(function () {
multiSelect:false,
converters: {
timestamp: {
from: function (value) { return moment(value, 'YYYY-MM-DD HH:mm:ss').valueOf(); },
to: function (value) { return moment.unix(value).local().format('YYYY-MM-DD HH:mm:ss'); }
to: function (value) { return (new Date(value*1000)).toLocaleString(); }
}
},
formatters: {
Expand Down

0 comments on commit b573efa

Please sign in to comment.