#!/bin/zsh read -r DATE; echo $DATE | sed 's/\(....\)\(..\)\(..\)\(T\)\(..\)\(..\)\(..\)/\1-\2-\3\4\5:\6:\7/'