<div dir="ltr">Clients can be anywhere, and you don't want them to have to be aware of the remote server local time zone to have to translate that to UTC or to your own local time zone. Everything being in UTC aids that because if you need to convert it to your local time, you only have the single offset to be aware of to put into your context. Mix in clients in different time zones, and standardizing on something such as UTC is critical.<div><br></div><div>Logging, realistically should just be an artifact of the localtime set on the machine when the process launches, and that is typically set for humans to relate it to their own local time.</div><div><br></div><div>Hope that makes sense,</div><div><br></div><div>-Julia</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 8, 2023 at 12:34 PM kaqiu pi <<a href="mailto:thremes172@gmail.com">thremes172@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have a openstack cluster. And the local time of server is different from UTC.</div><div><br></div><div>I saw that the log date of openstack service is local time. But w<span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px">hen I use the command line to query the openstack service status, time zone is UTC. Such as `opentack compute service list`, "Update At" is UTC.</span></div><div><span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px">In the email archive[1], I saw that there was a discussion earlier:</span></div><div><span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px"> > </span><span style="color:rgb(83,83,83);font-family:"andale mono","lucida console",monospace;font-size:12.0012px">i would guess it a deliberate design descisn to only store </span><span style="color:rgb(83,83,83);font-family:"andale mono","lucida console",monospace;font-size:12.0012px">data information in utc format and leave it to the clinets to convert to local timezones if desired</span></div><div><span style="color:rgb(83,83,83);font-family:"andale mono","lucida console",monospace;font-size:12.0012px"><br></span></div><div><span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px">But at that time it was just a guess, I would like to ask if this is the meaning of the original design, why the service use UTC instead of local time?</span><span style="color:rgb(83,83,83);font-family:"andale mono","lucida console",monospace;font-size:12.0012px"><br></span></div><div><span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei";font-size:14.6667px">I would appreciate any kind of guidance or help.</span><br></div><div>Best wishes. <span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px"><br></span></div><div><span style="color:rgb(83,83,83);font-family:"andale mono","lucida console",monospace;font-size:12.0012px"><br></span></div><div><span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px"><br></span></div><div>[1] <a href="https://lists.openstack.org/pipermail/openstack-discuss/2021-June/022857.html" target="_blank">https://lists.openstack.org/pipermail/openstack-discuss/2021-June/022857.html</a><span style="color:rgb(16,18,20);font-family:"PingFang SC","Segoe UI",Arial,"Microsoft YaHei",微软雅黑,宋体,"Malgun Gothic",sans-serif;font-size:14px"><br></span></div></div>
</blockquote></div>