I am currently using a downgraded version of Discourse and rewriting the front-end code using components
Email uses below in a plugin, can i modify short_date from a theme componet?
after_initialize do
if SiteSetting.custom_email_date_format_enabled
module ::EmailHelper
def short_date(datetime)
china_time = datetime.in_time_zone("Asia/Shanghai")
china_time.strftime("%Y-%m-%d %H:%M")
end
end
end
end