1
0
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:
Fabian Schlenz 2016-07-05 15:22:08 +02:00
parent 84984ddc20
commit f5a478a454
2 changed files with 2 additions and 2 deletions

View File

@ -439,7 +439,7 @@ class Database {
private void getMessagesForExport(String type, Integer id, ChatMessageProcessor p) {
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 " +
"users.id=messages.from_id AND dialog_id=" + id + " AND from_type='" + type + "' " +
"ORDER BY messages.id");

View File

@ -68,7 +68,7 @@ class HTMLExporter {
}
public void process(Database.Message msg) {
w.println("" + msg.text + "<br>");
w.println("" + String.format("%1$tF %1$tT", msg.time) + " - " + msg.text + "<br>");
}
}