4 ms·
I learned this one the hard way when using jQuery Datatables, dates aren't natively supported for sorting, so had to integrate moment.js and learn the quirks of
by joenathanone 5y ago
I learned this one the hard way when using jQuery Datatables, dates aren't natively supported for sorting, so had to integrate moment.js and learn the quirks of date formatting between it, Datatables, .net and sql, especially since with moment you uppercase everything MM/DD/YYYY vs MM/dd/yyyy, plus notation for AM/PM and seconds is also different.
Dates are hard.
- BrandoElFollito 5y ago> date formatting between it Oh yes. The nightmare of software that reinvent the wheel. Instead of using ISO 8601 [1] they feel the need to do something else. I currently suffer with how time was botched in the otherwise great backup program Borg [2] [1] https://xkcd.com/1179/ https://xkcd.com/1179/ - yes, xkcd has an entry for everything [2] https://www.borgbackup.org/ https://www.borgbackup.org/
- kiwijamo 5y agoAs a Borg user, could you explain more about the issues with date formatting in Borg?
- BrandoElFollito 5y agoThe timestamps are naive (no timezone) and therefore hardly useable for a non-local installation (backups on/to servers in different locations). See for instance https://github.com/borgbackup/borg/issues/4832 https://github.com/borgbackup/borg/issues/4832