ajuste de fecha en bot

This commit is contained in:
2025-03-13 22:41:29 +01:00
parent a3134cc24c
commit a8fd3b479f

View File

@ -62,7 +62,7 @@ public class TelegramBot extends TelegramLongPollingBot {
private String construirResumenNoticias() { private String construirResumenNoticias() {
LocalDate today = LocalDate.now(); LocalDate today = LocalDate.now();
String fechaInicio = today.format(DateTimeFormatter.ISO_DATE); String fechaInicio = today.format(DateTimeFormatter.ISO_DATE);
String fechaFin = today.format(DateTimeFormatter.ISO_DATE); String fechaFin = today.plusDays(1).format(DateTimeFormatter.ISO_DATE);
// Obtener las palabras clave de la API // Obtener las palabras clave de la API
List<String> keywords = ApiService.getAllKeywords(); List<String> keywords = ApiService.getAllKeywords();