Hot answers tagged

2 votes
Accepted

Alpine Linux timezone doesn't stick if tzdata is removed

The package tzdata contains information about the time zones. It tells software that the zone CEST is UTC+02:00, and when it's in use. When you remove the tzdata package all you have left is a ...
vidarlo's user avatar
  • 9,092
1 vote
Accepted

Calculate seconds minutes and days ago in shell

The date command cannot calculate durations. It's essentially what I commented before: you have timestamp one: ts1=$( date -d "08/23/2023 14:15:05" "+%s" ) you get a second ...
glenn jackman's user avatar
1 vote

Docker Container time & timezone (will not reflect changes)

The simplest way is to add -e option or ENV directive to set TZ environment variable, because debian, ubuntu, etc. already included tzdata. Someone recommends to mount the timezone from the host: $ ...
BubbleQuote's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible