[GH-ISSUE #4] Configure TimeZone #1

Closed
opened 2026-03-03 13:58:09 +03:00 by kerem · 4 comments
Owner

Originally created by @pascalandy on GitHub (Jul 16, 2017).
Original GitHub issue: https://github.com/konstruktoid/hardening/issues/4

Hi,
I think it would make sense to add a TIME_DATE flag in ubuntu.cfg

In my specific case it would be:

TIMEDATECTL='America/New_York'

In my setup I use this:

sudo apt-get -qqy install ntp ntpdate --no-install-recommends
sudo timedatectl set-timezone America/New_York
sudo timedatectl set-ntp yes
echo && echo -e "Verify that the timezone has been set properly"
timedatectl
Originally created by @pascalandy on GitHub (Jul 16, 2017). Original GitHub issue: https://github.com/konstruktoid/hardening/issues/4 Hi, I think it would make sense to add a TIME_DATE flag in ubuntu.cfg In my specific case it would be: ``` TIMEDATECTL='America/New_York' ``` ### In my setup I use this: ``` sudo apt-get -qqy install ntp ntpdate --no-install-recommends sudo timedatectl set-timezone America/New_York sudo timedatectl set-ntp yes echo && echo -e "Verify that the timezone has been set properly" timedatectl ```
kerem closed this issue 2026-03-03 13:58:09 +03:00
Author
Owner

@konstruktoid commented on GitHub (Aug 4, 2017):

Thanks again @pascalandy, I'll add TIMEDATECTL later on, but I'm not sure installing ntp is necessary since I'm focusing on using systemd functions as often as possible.

<!-- gh-comment-id:320353325 --> @konstruktoid commented on GitHub (Aug 4, 2017): Thanks again @pascalandy, I'll add `TIMEDATECTL` later on, but I'm not sure installing `ntp` is necessary since I'm focusing on using `systemd` functions as often as possible.
Author
Owner

@konstruktoid commented on GitHub (Sep 14, 2017):

Present in the development branch.

<!-- gh-comment-id:329489200 --> @konstruktoid commented on GitHub (Sep 14, 2017): Present in the development branch.
Author
Owner

@pascalandy commented on GitHub (Sep 14, 2017):

Great, I was about to deploy few machines today

<!-- gh-comment-id:329492791 --> @pascalandy commented on GitHub (Sep 14, 2017): Great, I was about to deploy few machines today
Author
Owner

@konstruktoid commented on GitHub (Sep 28, 2017):

Closed with github.com/konstruktoid/hardening@a80c348af2

<!-- gh-comment-id:332941286 --> @konstruktoid commented on GitHub (Sep 28, 2017): Closed with https://github.com/konstruktoid/hardening/commit/a80c348af2da225a5bf63409884efb2e1323a168
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hardening#1
No description provided.