mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix timestamps on SD gens
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
|||||||
appendImageToMessage
|
appendImageToMessage
|
||||||
} from "../../../script.js";
|
} from "../../../script.js";
|
||||||
import { getApiUrl, getContext, extension_settings, doExtrasFetch, modules } from "../../extensions.js";
|
import { getApiUrl, getContext, extension_settings, doExtrasFetch, modules } from "../../extensions.js";
|
||||||
import { stringFormat, initScrollHeight, resetScrollHeight } from "../../utils.js";
|
import { stringFormat, initScrollHeight, resetScrollHeight, timestampToMoment } from "../../utils.js";
|
||||||
export { MODULE_NAME };
|
export { MODULE_NAME };
|
||||||
|
|
||||||
// Wraps a string into monospace font-face span
|
// Wraps a string into monospace font-face span
|
||||||
@@ -557,7 +557,7 @@ async function sendMessage(prompt, image) {
|
|||||||
is_system: context.groupId ? true : false,
|
is_system: context.groupId ? true : false,
|
||||||
is_user: false,
|
is_user: false,
|
||||||
is_name: true,
|
is_name: true,
|
||||||
send_date: Date.now(),
|
send_date: timestampToMoment(Date.now()).format('LL LT'),
|
||||||
mes: context.groupId ? p(messageText) : messageText,
|
mes: context.groupId ? p(messageText) : messageText,
|
||||||
extra: {
|
extra: {
|
||||||
image: image,
|
image: image,
|
||||||
|
Reference in New Issue
Block a user