mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
HTMLExporter now also outputs the time of messages.
This commit is contained in:
parent
84984ddc20
commit
f5a478a454
@ -439,7 +439,7 @@ class Database {
|
|||||||
|
|
||||||
private void getMessagesForExport(String type, Integer id, ChatMessageProcessor p) {
|
private void getMessagesForExport(String type, Integer id, ChatMessageProcessor p) {
|
||||||
try {
|
try {
|
||||||
ResultSet rs = stmt.executeQuery("SELECT messages.id, text, time, has_media, " +
|
ResultSet rs = stmt.executeQuery("SELECT messages.id, text, time*1000, has_media, " +
|
||||||
"sticker, first_name, last_name, username FROM messages, users WHERE " +
|
"sticker, first_name, last_name, username FROM messages, users WHERE " +
|
||||||
"users.id=messages.from_id AND dialog_id=" + id + " AND from_type='" + type + "' " +
|
"users.id=messages.from_id AND dialog_id=" + id + " AND from_type='" + type + "' " +
|
||||||
"ORDER BY messages.id");
|
"ORDER BY messages.id");
|
||||||
|
@ -68,7 +68,7 @@ class HTMLExporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void process(Database.Message msg) {
|
public void process(Database.Message msg) {
|
||||||
w.println("" + msg.text + "<br>");
|
w.println("" + String.format("%1$tF %1$tT", msg.time) + " - " + msg.text + "<br>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user