Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Решено] Правильный перевод времени на msk=utc+3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
tkzv
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2014
Posts: 83

PostPosted: Sun Oct 26, 2014 8:46 am    Post subject: [Решено] Правильный перевод времени на msk=utc+3 Reply with quote

Code:
$ date ; date --utc
Вс окт 26 12:34:23 MSK 2014
Вс окт 26 08:34:23 UTC 2014


Версия sys-libs/timezone-data 2014i-r1. Есть ли правильный способ сделать чтобы MSK было UTC+3 ?


Last edited by tkzv on Sun Oct 26, 2014 7:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
denzyx
n00b
n00b


Joined: 26 Oct 2014
Posts: 1

PostPosted: Sun Oct 26, 2014 5:21 pm    Post subject: Reply with quote

Скорее всего, надо перезаписать /etc/localtime:
Code:
cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime

Или сделать симлинком, чтобы "оно само каждый раз" (:
Back to top
View user's profile Send private message
tkzv
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2014
Posts: 83

PostPosted: Sun Oct 26, 2014 7:31 pm    Post subject: Reply with quote

Точно, симлинк помог. Спасибо.
Back to top
View user's profile Send private message
Pinkbyte
Developer
Developer


Joined: 01 Jun 2012
Posts: 128
Location: Rostov-on-Don, Russia

PostPosted: Thu Nov 06, 2014 7:46 am    Post subject: Reply with quote

Еще как вариант можно не делать симлинк, а прописать таймзону(Europe/Moscow например) в /etc/timezone

Тогда ебилд сам будет обновлять файл /etc/localtime, но только если это действительно файл, а не симлинк. В общем - оба способа поддерживаются.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum