From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada.Calendar.Formatting.Image (or Time_Of) changing the time Date: Mon, 2 Mar 2020 17:08:07 -0600 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Mon, 2 Mar 2020 23:08:09 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="6470"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:58157 Date: 2020-03-02T17:08:07-06:00 List-Id: What time zone did you give Image? Time zones are dependent on the time given, so just giving some constant is insufficient to give the correct local time. (A "time zone" is an offset from UTC, so of course it differs throughout the year for most localities.) Randy. "Marius Amado-Alves" wrote in message news:e92d8c8d-a182-4990-b3f6-33c2ab90bce9@googlegroups.com... > Feeding Ada.Calendar.Formatting.Image with an Ada.Calendar.Time_Of the > year, month, day, seconds on the left, we get the image on the right. Some > images, marked *, are 1 hour behind. > > 2015 1 21 32040 ( 8:54 AM) => 2015-01-21 08:54:00 > 2015 1 21 39240 (10:54 AM) => 2015-01-21 10:54:00 > 2015 7 21 32040 ( 8:54 AM) => 2015-07-21 07:54:00 * > 2015 7 21 39240 (10:54 AM) => 2015-07-21 09:54:00 * > > The different input is the month, January versus July, so it looks like a > daylight savings thing. Is this expected behaviour? Thanks. > > [Compiler = GNAT Community 2018 (20180523-73)]