~ysu/gemini-chatroom

24ec3eb47cfa0ec48e5261fa20bb34e190812834 — vps 3 years ago 256f9d4
changed timestamps to ISO 8601 format
1 files changed, 1 insertions(+), 1 deletions(-)

M bin/chat0/post
M bin/chat0/post => bin/chat0/post +1 -1
@@ 16,7 16,7 @@ nstr=$(echo $QUERY_STRING | sed 's/\(%0A\|
\)/ /g' | sed 's/%/\\x/g')
nuser=$(echo ${user//[!a-z]/})

if [ $(cat last_message) != $nstr ]; then
	printf "($(date "+%d/%m/%y %R %Z")) $(echo $nuser: $nstr | awk '{printf "%9s\t%s\n", $1, $2}')\n" >> message_log
	printf "($(date "+%Y/%m/%d %R %Z")) $(echo $nuser: $nstr | awk '{printf "%9s\t%s\n", $1, $2}')\n" >> message_log
	echo $nstr > last_message
	echo -e "30 /bin/chat$chatNum\r\n"
else