102-500 · Question #7
Why is the correct configuration of a system's time zone important?
The correct answer is E. Because the conversion of Unix timestamps to local time relies on the time zone configuration. Option E is correct because Unix/Linux systems store all timestamps (file modification times, log entries, etc.) as Unix timestamps - a count of seconds since the UTC epoch (January 1, 1970). The timezone configuration is the conversion layer that translates those raw UTC…
Question
Options
- ABecause the timezone is included in checksum calculations and timezone changes invalidate
- BBecause the time zone is saved as part of the modification times of files and cannot be changed
- CBecause the environment variables LANG and LC_MESSAGES are, by default, set according to
- DBecause NTP chooses servers nearby based on the configured time zone.
- EBecause the conversion of Unix timestamps to local time relies on the time zone configuration.
How the community answered
(49 responses)- A14% (7)
- B2% (1)
- C2% (1)
- D6% (3)
- E76% (37)
Explanation
Option E is correct because Unix/Linux systems store all timestamps (file modification times, log entries, etc.) as Unix timestamps - a count of seconds since the UTC epoch (January 1, 1970). The timezone configuration is the conversion layer that translates those raw UTC values into the local time a user actually sees; get it wrong, and every timestamp displayed by ls -l, log viewers, or cron schedules will be offset by hours.
Why the distractors are wrong:
- A - Checksums (MD5, SHA, etc.) are computed from file content only; timezone plays no role in them.
- B - Files store modification times as raw UTC-based Unix timestamps, not in local time, so the timezone isn't "baked in" and can be changed without corrupting those values.
- C -
LANGandLC_MESSAGEScontrol language/locale (which language system messages appear in), not timezone; they are set independently via locale configuration. - D - NTP selects servers based on network latency and pool membership, not the system's configured timezone.
Memory tip: Think of Unix timestamps as a universal UTC clock ticking in the background. The timezone setting is simply the decoder ring that turns that UTC number into a human-readable local time - without the right ring, every time display is wrong.
Topics
Community Discussion
No community discussion yet for this question.