All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arik Kleiman <arik.kleiman@gmail.com>
To: Michael Opdenacker <michael.opdenacker@bootlin.com>
Cc: Ross Burton <ross@burtonini.com>, yocto@lists.yoctoproject.org
Subject: Re: [yocto] updating system with local time
Date: Tue, 4 Jan 2022 16:58:09 +0200	[thread overview]
Message-ID: <CAGeH+D2ByzQjBCgzUr1WNE7+=gXenViPJBo1XjgUF_Ofv2q4JA@mail.gmail.com> (raw)
In-Reply-To: <e8b3d35c-4752-d2ca-ba1a-22040aeca3cb@bootlin.com>

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

I don't have option to add systemd.

Added alrady tzdata and all time zone folders exist.
The issue is that ntpdate returns time in UTC.

I found a way to get local time zone (by using ip lookup). Now i looking
for a way to use it to update system time

On Tue, Jan 4, 2022, 15:47 Michael Opdenacker <
michael.opdenacker@bootlin.com> wrote:

> Hi Arik,
>
> On 1/4/22 1:15 PM, Arik Kleiman wrote:
> > The thing is that ntpdate syncs system time to UTC
> >
> > How can i set my system's time according to time zone?
>
>
> If you're using systemd, you could use the timedatectl command:
>
> https://linuxiac.com/how-to-set-timezone-and-sync-server-time-with-ntp-in-linux/
>
> Otherwise, you can add the "tzdata" recipe to your image. It should
> allow you to set the timezone that you want:
> https://www.yoctoproject.org/pipermail/yocto/2018-October/042964.html
>
> Cheers
> Michael.
>
> --
> Michael Opdenacker, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>

[-- Attachment #2: Type: text/html, Size: 1820 bytes --]

  parent reply	other threads:[~2022-01-04 14:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04  7:47 updating system with local time Arik Kleiman
2022-01-04 12:05 ` [yocto] " Ross Burton
2022-01-04 12:15   ` Arik Kleiman
     [not found]     ` <e8b3d35c-4752-d2ca-ba1a-22040aeca3cb@bootlin.com>
2022-01-04 14:58       ` Arik Kleiman [this message]
2022-01-04 15:46         ` Ross Burton
2022-01-04 17:35           ` Arik Kleiman
2022-01-05  9:17             ` Ross Burton
     [not found]       ` <16C71934C97A8A71.28298@lists.yoctoproject.org>
2022-01-04 15:43         ` Arik Kleiman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGeH+D2ByzQjBCgzUr1WNE7+=gXenViPJBo1XjgUF_Ofv2q4JA@mail.gmail.com' \
    --to=arik.kleiman@gmail.com \
    --cc=michael.opdenacker@bootlin.com \
    --cc=ross@burtonini.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.