Local time and date of birth or why UTC

In the world of programming, the world and local time standards and procedures for converting between them have long been introduced. However, for ordinary people, this is all new and they do not pay attention to it. As a result, the date of birth and other dates can "move out" in relation to what you have written in your passport. Therefore, it is necessary to be more scrupulous about the time data before entering it, especially in the blockchain. Let's figure it out





Example

You have the date of birth recorded in your passport, for example 1990-05-05, while the place of birth is also indicated. It can be used to determine the local time and the offset to the world time.





If you do not pay attention to the shift in world time, then the software itself will put the shift in local time on your device from which you enter the date of birth, and it may turn out that:





  1. You were born in Vladivostok at 23 o'clock in the morning - that is, UTC + 10, and in Moscow it is minus 7 hours (Moscow time is UTC + 03 shift),





  2. And you fill out the form of your person, for example, while in Moscow - as a result, the software on your local device (for example, a mobile phone, a website, a full node of the Erachain blockchain ) will substitute UTC + 03





  3. You do not set the exact time of birth, and instead of you, your device puts it as 00:00.





  4. As a result, in the Erachain blockchain, your date of birth will be 1990-05-05 at 00:00 UTC + 03





Moreover, if you look at the date of birth in the international standard, it turns out that you were born a day earlier: 1990-05-04 at 21:00.





Mathematically, everything is correct, but not quite “humanly”!





Now, if you are in Moscow or Vladivostok, then the birthday (5 = th number) will not change, even taking into account the application of the local shift.





However, if you are, for example, in Europe, then your date of birth will be the 4th number!





This can be corrected if in the field where your date of birth will be displayed forcibly enter the offset UTC + 03.





Solutions

  1. UTC, , ( ), , . UTC, .





  2. When displaying the date and time, always pay attention to the time shift on the device on which you see it. So in Japan your date of birth will be 1990-05-05, and in Europe it is already 1990-05-04, since the device that will display itself will substitute a local shift and convert the date in international format to local time. Therefore, pay attention to UTC also when displaying your data and recalculate the time “in your head” or set UTC when displaying , if possible.








All Articles