我发现了这个问题:How to set timezone for my application deployed on RUN@Cloud建议使用jvmTimeZone但它似乎没有任何效果。
我试过了:
bees config:set -RjvmTimeZone=Europe/Berlin
bees config:set -jvmTimeZone=Europe/Berlin
但Calendar.getInstance().getTimeZone()
仍然会返回“GMT”
答案 0 :(得分:3)
jvmTimeZone是一个Platform参数,只能使用app:deploy / app:update
进行设置 bees app:update jvmTimeZone=Europe/Berlin