X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/62563a5a0d133fac43d81f85b50d6da01eb93283..f170028527bdccead9a99797b45011d5e76100f1:/components/datetime.c?ds=inline

diff --git a/components/datetime.c b/components/datetime.c
index 12d7717..c3efae3 100644
--- a/components/datetime.c
+++ b/components/datetime.c
@@ -11,7 +11,7 @@ datetime(const char *fmt)
 
 	t = time(NULL);
 	if (!strftime(buf, sizeof(buf), fmt, localtime(&t))) {
-		fprintf(stderr, "strftime: Result string exceeds buffer size\n");
+		warn("strftime: Result string exceeds buffer size");
 		return NULL;
 	}