aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdiary2
1 files changed, 1 insertions, 1 deletions
diff --git a/diary b/diary
index b3c36f7..4208a3c 100755
--- a/diary
+++ b/diary
@@ -29,7 +29,7 @@ pushd $diary_location > /dev/null
# Get the entry name
-entry=$(date -d $1 +%Y-%m-%d)
+entry=$(date -d $1 +%Y-%m-%d 2> /dev/null)
if [ $? -ne 0 ]
then
entry=$(date +%Y-%m-%d)