Fixed date formatting
This commit is contained in:
parent
e4e3e27ae9
commit
f862d53243
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue