Fixed date formatting

This commit is contained in:
Mr. Stallion 2020-06-29 20:35:14 -05:00
parent e4e3e27ae9
commit f862d53243
3 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
# Changelog
## Canary
* Fix caching issue that causes cache misses on charater page metadata
* Fix ad posting issue that sometimes disconnects characters if multiple characters are in use
* Fixed caching issue that causes cache misses on charater page metadata
* Fixed ad posting issue that sometimes disconnects characters if multiple characters are in use
* URL preview fixes for Redgifs, Gelbooru, Tumblr, and Gifmixxx
* All dependencies are now up to date

View File

@ -74,7 +74,7 @@
import Zip from './zip';
function formatDate(this: void, date: Date): string {
return format(date, 'yyyy-MM-DD');
return format(date, 'yyyy-MM-dd');
}
function getLogs(messages: ReadonlyArray<Conversation.Message>): string {

View File

@ -21,7 +21,7 @@
if(this.time === null || this.time === 0)
return;
const date = isNaN(+this.time) ? new Date(`${this.time}+00:00`) : new Date(+this.time * 1000);
const absolute = format(date, 'yyyy-MM-DD HH:mm');
const absolute = format(date, 'yyyy-MM-dd HH:mm');
const relative = formatDistanceToNow(date, {addSuffix: true});
if(settings.fuzzyDates) {
this.primary = relative;