Skip to main content
Topic: Problems to set time and conflict with debian systems  (Read 7496 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: Problems to set time and conflict with debian systems

Reply #15
but Linuxmint is in UTC, the Bios time is in UTC and it is eastern time.

And for some reason still saying timedate is not ...

Code: [Select]
[kaos keos]# timedatectl status
bash: timedatectl: no se encontró la orden
[kaos keos]#

Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to set time and conflict with debian systems

Reply #16
Just symlink your timezone info file to /etc/localtime. It's what tzselect and that abomination from systemd do anyway.

Debian needs to be setup to store time in UTC.

 He's in south-eastern Europe.

Code: [Select]
 GNU nano 2.9.1                   /etc/localtime                              

TZif2^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^E^@^@^@^E^@^@^@^@^@^@^@�^@^@^@^E^@^@^$
@p��9`ˈ�p�#�p�`���u���@���U��� ���5���^@���^U���������p��e��މpݩ�`
xp^@^@^@^@eG/`^@^@^@^@e�Zp^@^@^@^@g'^Q`^@^@^@^@g�<p^@^@^@^@i^F�`^@^@^@^@i�^^p^@$
EST5EDT,M3.2.0,M11.1.0


That is what he has linked.   \_o_/


Re: Problems to set time and conflict with debian systems

Reply #17
GMT stands for Greenwich (village) Meridian Tima, so mountain time (Cheyenne Wyoming) is -2:00

I hope I've cleared the confusion


Re: Problems to set time and conflict with debian systems

Reply #18
Code: [Select]
[kaos keos]# tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
 1) Africa
 2) Americas
 3) Antarctica
 4) Asia
 5) Atlantic Ocean
 6) Australia
 7) Europe
 8) Indian Ocean
 9) Pacific Ocean
10) coord - I want to use geographical coordinates.
11) TZ - I want to specify the time zone using the Posix TZ format.
#? 2
Please select a country whose clocks agree with yours.
 1) Anguilla   19) Dominican Republic    37) Peru
 2) Antigua & Barbuda   20) Ecuador     38) Puerto Rico
 3) Argentina   21) El Salvador     39) St Barthelemy
 4) Aruba   22) French Guiana     40) St Kitts & Nevis
 5) Bahamas   23) Greenland     41) St Lucia
 6) Barbados   24) Grenada     42) St Maarten (Dutch)
 7) Belize   25) Guadeloupe     43) St Martin (French)
 8) Bolivia   26) Guatemala     44) St Pierre & Miquelon
 9) Brazil   27) Guyana     45) St Vincent
10) Canada   28) Haiti     46) Suriname
11) Caribbean NL   29) Honduras     47) Trinidad & Tobago
12) Cayman Islands   30) Jamaica     48) Turks & Caicos Is
13) Colombia   31) Martinique     49) United States
14) Costa Rica   32) Mexico     50) Uruguay
15) Cuba   33) Montserrat     51) Venezuela
16) Curaçao   34) Nicaragua     52) Virgin Islands (UK)
17) Chile   35) Panama     53) Virgin Islands (US)
18) Dominica   36) Paraguay
#? 49
Please select one of the following time zone regions.
 1) Eastern (most areas)       16) Central - ND (Morton rural)
 2) Eastern - MI (most areas)       17) Central - ND (Mercer)
 3) Eastern - KY (Louisville area)    18) Mountain (most areas)
 4) Eastern - KY (Wayne)       19) Mountain - ID (south); OR (east)
 5) Eastern - IN (most areas)       20) MST - Arizona (except Navajo)
 6) Eastern - IN (Da, Du, K, Mn)      21) Pacific
 7) Eastern - IN (Pulaski)       22) Alaska (most areas)
 8) Eastern - IN (Crawford)       23) Alaska - Juneau area
 9) Eastern - IN (Pike)       24) Alaska - Sitka area
10) Eastern - IN (Switzerland)       25) Alaska - Annette Island
11) Central (most areas)       26) Alaska - Yakutat
12) Central - IN (Perry)       27) Alaska (west)
13) Central - IN (Starke)       28) Aleutian Islands
14) Central - MI (Wisconsin border)   29) Hawaii
15) Central - ND (Oliver)
#? 1

The following information has been given:

United States
Eastern (most areas)

Therefore TZ='America/New_York' will be used.
Selected time is now: jue dic 28 09:26:25 EST 2017.
Universal Time is now: jue dic 28 14:26:25 UTC 2017.
Is the above information OK?
1) Yes
2) No
#? 1

You can make this change permanent for yourself by appending the line
TZ='America/New_York'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
America/New_York
[kaos keos]#

This is what i did and when i'm going back to Debian and comeback ... wrong time again in arch.

Quote
You can make this change permanent for yourself by appending the line
   TZ='America/New_York'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

i don't  know how to do this ...
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to set time and conflict with debian systems

Reply #19
@keos You say your bios is in UTC and in Eastern (Europe) time?
I believe UTC is UTC (old GMT) and does not change.  If you can adjust the time there to your "real" time it may help.
One is picking up bios time as real and one as UTC.
I've had the same problem and just gave up fiddling, after all Artix is my #1 work system.  The rest are for studying and toying around.  The only exception is Obarun which I have made so much to resemble Artix that I forget where I am at sometimes.


Re: Problems to set time and conflict with debian systems

Reply #20
but Linuxmint is in UTC, the Bios time is in UTC and it is eastern time.

And for some reason still saying timedate is not ...

Code: [Select]
[kaos keos]# timedatectl status
bash: timedatectl: no se encontró la orden
[kaos keos]#


You can also install timeset or timeset-Gui from AUR makes it simple.  Make sure you have the Ntp deamon enabled

Re: Problems to set time and conflict with debian systems

Reply #21
Code: [Select]
The following information has been given:

United States
Eastern (most areas)

Therefore TZ='America/New_York' will be used.
Selected time is now: jue dic 28 09:26:25 EST 2017.
Universal Time is now: jue dic 28 14:26:25 UTC 2017.
Is the above information OK?
1) Yes
2) No
#? 1

You can make this change permanent for yourself by appending the line
TZ='America/New_York'; export TZ
to the file '.profile' in your home directory; then log out and log in again.

Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
America/New_York
[kaos keos]#

And when i change to Mint and comeback i found the time is wrong again. ah! and timeset-Gui from AUR is already installed and the Ntp deamon enabled but when i change to Mint and comeback again ...

And ... after "update" the time with timeset-gui, even when it is saying is ok is not ok:

Code: [Select]
[kaos keos]# date
vie dic 29 10:22:21 EST 2017
[kaos keos]# hwclock
2017-12-29 05:22:30.045500-0500
[kaos keos]#


This is to much for me i'm considering uninstall the system ... Thanks for your help.
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to set time and conflict with debian systems

Reply #22
More information:

 
Code: [Select]
[kaos keos]# hwclock --show
2017-12-29 05:34:00.280023-0500
[kaos keos]# hwclock --systohc
[kaos keos]# hwclock --show
2017-12-29 10:34:51.936293-0500
[kaos keos]#

And when comeback from Mint everything is wrong.

I'm not an expert but i think there is something wrong here with systemd ...
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to set time and conflict with debian systems

Reply #23
I wanting to try to get the new kernel to see what happen but after fix to the right time again  ...

 
Code: [Select]
[[kaos keos]# hwclock
2017-12-29 07:51:32.927678-0500
[kaos keos]# hwclock --systohc
[kaos keos]# hwclock --show
2017-12-29 12:52:49.874007-0500/code]

 nano /etc/pacman.conf and add the indication:

 [code][repo-ck]
Server = http://repo-ck.com/$arch

and at root terminal: 

Code: [Select]
pacman-key -r 5EE46C4C && pacman-key --lsign-key 5EE46C4C

but ...

Code: [Select]
[kaos keos]# LANG=C pacman-key -r 5EE46C4C && pacman-key --lsign-key 5EE46C4C
gpg: keyserver receive failed: Connection timed out
==> ERROR: Remote key not fetched correctly from keyserver.
[kaos keos]#

Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to set time and conflict with debian systems

Reply #24
Did you try the command that nous gave you on Mint? 
Probably mint has some systemd tz service going screwing everything up

Re: Problems to set time and conflict with debian systems

Reply #25
Code: [Select]
Yes i did it ... i'm totally lost, now this is a mess, from LinuxMint Rosa:

[codekaos kaos # date
vie dic 29 19:19:19 UTC 2017
kaos kaos # hwclock
vie 29 dic 2017 14:19:26 UTC  -0.221063 segundos
kaos kaos #]

i checked at the Bios too and time is ok .

And i tried this too ...

Code: [Select]
kaos kaos # hwclock --localtime --show
vie 29 dic 2017 14:47:47 UTC  -0.297734 segundos
kaos kaos #

Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Re: Problems to set time and conflict with debian systems

Reply #26
And this information (today) is for Archlabs:

Code: [Select]
root@kaos /home/keos # timedatectl status
                      Local time: Sat 2017-12-30 10:25:11 EST
                  Universal time: Sat 2017-12-30 15:25:11 UTC
                        RTC time: Sat 2017-12-30 15:25:11
                       Time zone: America/New_York (EST, -0500)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no
root@kaos /home/keos #
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]


Re: Problems to set time and conflict with debian systems

Reply #28
In mint:
Code: [Select]
sudo dpkg-reconfigure tzdata
Scroll to the bottom of the list of continents. Select Etc or None of the above. In the second list, select UTC time. This should fix mint.
Here is more info:
https://askubuntu.com/questions/138423/how-do-i-change-my-timezone-to-utc-gmt


Two many variables and your making yourself crazy.  Set in the Bios the hardware clock to UTC time.  Set in each OS the timezone accoding to the database.  If mint is fucking everything up by reseting your hardware clock to real time without telling you then don't use it.

Re: Problems to set time and conflict with debian systems

Reply #29
Code: [Select]
The Bios time is set at newyork/america, which is the right time for me, i don't see any other option in the Bios for UTC, it just say "time".

From Mint after apply again the command nous gave before ...

 [codekaos@kaos ~ $ LANG=C hwclock --debug
hwclock from util-linux 2.20.1
hwclock: Open of /dev/rtc failed: Permission denied
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
kaos@kaos ~ $

]
Mate
Desktop: xfce

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]