logtail: Use function for preparing timestamp strings.