root@61bdd083614d:/# dpkg-reconfigure tzdata
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time
zones in which they are located.
1. Africa 3. Antarctica 5. Arctic Ocean 7. Atlantic Ocean 9. Indian Ocean 11. System V timezones 13. None of the above
2. America 4. Australia 6. Asia 8. Europe 10. Pacific Ocean 12. US
Geographic area: 13
Please select the city or region corresponding to your time zone.
1. GMT 4. GMT+10 7. GMT+2 10. GMT+5 13. GMT+8 16. GMT-1 19. GMT-12 22. GMT-2 25. GMT-5 28. GMT-8 31. Greenwich 34. Universal
2. GMT+0 5. GMT+11 8. GMT+3 11. GMT+6 14. GMT+9 17. GMT-10 20. GMT-13 23. GMT-3 26. GMT-6 29. GMT-9 32. UCT 35. Zulu
3. GMT+1 6. GMT+12 9. GMT+4 12. GMT+7 15. GMT-0 18. GMT-11 21. GMT-14 24. GMT-4 27. GMT-7 30. GMT0 33. UTC
Time zone: 33
2 Replies to “[Docker]在Container內設定時區”
殊不知這個是痛苦的開始…儲存時間資料的時候,還是以UTC時間為好(除非你可以百分之百確認你的用戶或環境都是+8,那麼以+8時間為基準處理就是共識,否則,在每一台機器間、每個解決方案中對時區處理的設定,可能會搞死我們自己…
受惠拉