fix amqp and mail date reading bug in frontend