XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Wrong timestamp on snaphot

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    15 Posts 3 Posters 689 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      No worries, I'll re-explain 🙂

      A timestamp is a timestamp (eg a number of sec since Jan 1st 1970 for UNIX timestamp) . There's no wrong or right.

      Why your timezone will be more right than any other? Imagine you have a another admin doing backups in another TZ, what we should do? Who's right? who's wrong? And what if a third admin in another TZ will read snapshot time? This will be a mess.

      So we decided to use the Zulu time, because it's universal and everybody can convert it on its local time.

      Anyway, Zulu time is not wrong, is one representation of time that's universal

      Did you spotted the "Z" in it?

      akurzawaA 1 Reply Last reply Reply Quote 0
      • akurzawaA Offline
        akurzawa @olivierlambert
        last edited by

        @olivierlambert said in Wrong timestamp on snaphot:

        Imagine you have a another admin doing backups in another TZ

        So this is the problem - I don't and will not have a backups in another timezone, I want to have correct time on the snapshot - so can It be done?

        1 Reply Last reply Reply Quote 0
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          Sometimes I wonder if you read my answers 😆

          akurzawaA 1 Reply Last reply Reply Quote 0
          • akurzawaA Offline
            akurzawa @olivierlambert
            last edited by

            @olivierlambert Always, So - again - can I have correct time in snapshot or no? I want the timestamp on snapshot to match local time of xoa, can It be done - this is simple as that

            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by olivierlambert

              You have the correct time. There's a 'Z' in it. So it is correct. Period.

              The only thing I can imagine to have this info both universal and not confusing would be to add an "overlay" in the web client to adapt to your own local TZ without modifying the info on the host side. But we must store the info in the most universal way possible (eg if you use xe CLI, it will display the original info in zulu time, and you'll continue to say it's wrong despite the fact I explained 10 times why it's not)

              akurzawaA 1 Reply Last reply Reply Quote 0
              • akurzawaA Offline
                akurzawa @olivierlambert
                last edited by

                @olivierlambert said in Wrong timestamp on snaphot:

                You have the correct time. There's a 'Z' in it. So it is correct. Period.

                I agree with that and I totally understand it. The question in can I (or Your team) make some adjustments in xo/a to see the exact the same which is on xoa host and on vm snap?

                1 Reply Last reply Reply Quote 0
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  @akurzawa said in Wrong timestamp on snaphot:

                  I agree with that and I totally understand it.

                  Great!!! 😄

                  The question in can I (or Your team) make some adjustments in xo/a to see the exact the same which is on xoa host and on vm snap?

                  As I said, even if we don't that (as a "lying" UI to replace to your local timestamp), this won't change the data storage in the XAPI field. But I wonder if it's a good idea.

                  1 Reply Last reply Reply Quote 0
                  • akurzawaA Offline
                    akurzawa
                    last edited by

                    Hi

                    It'a an important to know exact time of vm and snapshot - eg when recovering for an example a Active Directory or sql database. When doing so, someone can believe that restores the data from {the time visible in name}, because can be unaware of possible offset of zulu time.

                    olivierlambertO 1 Reply Last reply Reply Quote 0
                    • R Offline
                      r1 XCP-ng Team
                      last edited by

                      @akurzawa Which version of XO are you using? If open source one, I guess it should be straight to make it suite your needs. Or may be you tried that but had issue?

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO Offline
                        olivierlambert Vates 🪐 Co-Founder CEO @akurzawa
                        last edited by

                        @akurzawa said in Wrong timestamp on snaphot:

                        Hi

                        It'a an important to know exact time of vm and snapshot - eg when recovering for an example a Active Directory or sql database. When doing so, someone can believe that restores the data from {the time visible in name}, because can be unaware of possible offset of zulu time.

                        You already have the exact time 😉 If you aren't aware of an ISO standard format date, it's another story. But this is really standard and universal way.

                        I suppose you meant "misinterpreting the snapshot time" which has NOT the same meaning than "incorrect time".

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post