diff --git a/scripts/mkimage-yaml.sh b/scripts/mkimage-yaml.sh
index b3e49626a03c615082d54afd8232ce47068398e2..0170f3ee00132e314e66484dcfe8a82ceb0bf858 100755
--- a/scripts/mkimage-yaml.sh
+++ b/scripts/mkimage-yaml.sh
@@ -47,6 +47,7 @@ for image; do
 	size="$(stat -c "%s" $image)"
 	date=${datetime%% *}
 	time=${datetime#* }
+	time=${time%.*}
 	file=${filepath##*/}
 	flavor=${file%-${release}-${arch}.*}