Merge pull request #2554 from Succubyss/groupChat-timestamp Minor group chat timestamp fix
Signed| @@ -14,7 +14,7 @@ import { | |||
| 14 | saveChatConditional, | 14 | saveChatConditional, |
| 15 | saveItemizedPrompts, | 15 | saveItemizedPrompts, |
| 16 | } from '../script.js'; | 16 | } from '../script.js'; |
| 17 | import { humanizedDateTime } from './RossAscends-mods.js'; | 17 | import { humanizedDateTime, getMessageTimeStamp } from './RossAscends-mods.js'; |
| 18 | import { | 18 | import { |
| 19 | getGroupPastChats, | 19 | getGroupPastChats, |
| 20 | group_activation_strategy, | 20 | group_activation_strategy, |
| @@ -297,7 +297,7 @@ async function convertSoloToGroupChat() { | |||
| 297 | if (groupChat.length === 0) { | 297 | if (groupChat.length === 0) { |
| 298 | const newMessage = { | 298 | const newMessage = { |
| 299 | ...system_messages[system_message_types.GROUP], | 299 | ...system_messages[system_message_types.GROUP], |
| 300 | send_date: humanizedDateTime(), | 300 | send_date: getMessageTimeStamp(), |
| 301 | extra: { type: system_message_types.GROUP }, | 301 | extra: { type: system_message_types.GROUP }, |
| 302 | }; | 302 | }; |
| 303 | groupChat.push(newMessage); | 303 | groupChat.push(newMessage); |