diff --git a/components/datetime.c b/components/datetime.c
index 713b0fb..6dc9678 100644
--- a/components/datetime.c
+++ b/components/datetime.c
@@ -10,6 +10,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");
 		return NULL;
 	}