<div dir="ltr">Hello,<div><br></div><div>I'm working on the development of a software that uses the TZDB for Delphi to deal with the timezones' management, and I'd like to have your opinion about a problem that we are facing.</div><div>In a procedure, in order to decompose the periods of a timezone, we have to know the timezone's year of a UTC DateTime.<br clear="all"><div><div dir="ltr" class="gmail-m_7626448275376685889gmail-m_-7541598329270449622gmail_signature"><div dir="ltr">To do so, we are using these commands : </div><div dir="ltr"><font face="monospace, monospace">thisBundledTimezone := TBundledTimeZone.GetTimeZone('America/Los_Angeles');</font></div><div dir="ltr"><font face="monospace, monospace">timeZoneYear := YearOf(IncMinute(aUTCDateTime, Round(thisBundledTimezone.UtcOffset.TotalMinutes)));</font></div><div dir="ltr">This is fine if the program is running on Windows, but it crashes on Linux.</div><div dir="ltr">The error occurs when we're trying to get the UtcOffset. The TBundledTimeZone can't read the <br><div>FPeriods[I] in the function GetPeriodAndRule.<br></div><div>The thing is that FPeriods is a TList that is not typed (with TCompiledPeriod) and Delphi can't use it this way with Linux.</div><div>We can by the way see a warning when compiling a project that includes TZDB.pas, telling that TList is deprecated.</div><div>We have solved the problem by modifying the TZDB.pas unit, but it seems weird to have to do this.</div><div>We are also using the Decomposer.pas unit, but it doesn't have any problem with Linux because it is already working with typed TLists (<span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">function</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre"> </span><span class="gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">Decompose</span>).</div><div><br></div><div>Do you have any idea about this issue ? You can check the attachment to see our changes.</div><div><br></div><div>Thank you in advance for your answer,</div><div><br></div><div>Best regards,</div></div></div></div></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div><table style="font-family:Tahoma,Arial,sans-serif;border-collapse:collapse"><tbody><tr><th colspan="2" style="font-size:15px;color:rgb(28,14,60);text-align:left">Jean FRAUCIEL</th></tr><tr><td colspan="2" style="font-size:13px;color:rgb(28,14,60);padding-bottom:5px">Développeur Moteur</td></tr><tr><td style="width:30px;padding:10px 0px 0px"><img src="http://www.conecteo.fr/images/upload/signature_enveloppe.png"></td><td style="padding:10px 0px 0px"><a href="mailto:jfrauciel@kiamo.fr" style="color:rgb(0,0,0);font-size:13px" target="_blank">jfrauciel@kiamo.fr</a></td></tr><tr><td style="width:20px;padding:5px 0px"><img src="http://www.conecteo.fr/images/upload/signature_tel.png"></td><td style="padding:5px 0px"><span style="color:rgb(28,14,60)"><a href="tel:33547483320" style="color:rgb(0,0,0);font-size:13px" target="_blank">+33 5 47 48 33 20</a></span> |<span style="color:rgb(28,14,60)"><a style="color:rgb(0,0,0);font-size:13px"></a></span></td></tr><tr><td colspan="2" style="padding-top:5px"><span style="padding-right:50px"><img src="http://www.conecteo.fr/images/upload/signature_logo_kiamo.png"></span> <a href="http://www.conecteo.fr/" title="logo web" style="color:rgb(28,14,60);padding-right:4px" target="_blank"><img src="http://www.conecteo.fr/images/upload/signature_web.png" alt="logo web"></a> <a href="https://www.linkedin.com/company/conecteo" style="color:rgb(28,14,60);padding-right:4px" target="_blank"><img src="http://www.conecteo.fr/images/upload/signature_linkedin.png" alt="logo linkedin"></a>  <a href="https://twitter.com/Conecteo" style="color:rgb(28,14,60);padding-right:0px" target="_blank"><img src="http://www.conecteo.fr/images/upload/signature_twitter.png"></a> <a href="https://www.facebook.com/conecteo" style="color:rgb(28,14,60);padding-right:0px" target="_blank"><img src="http://www.conecteo.fr/images/upload/signature_fb.png"></a></td></tr><tr><td colspan="2"><table style="border-collapse:collapse;margin-top:20px"><tbody><tr><td style="font-size:13px">Chers clients et partenaires, rejoignez votre espace communautaire</td><td style="padding-top:5px"><a href="https://my.kiamo.fr/welcome" target="_blank"><img src="http://www.conecteo.fr/images/upload/signature_logo_mykiamo.png"></a></td></tr></tbody></table></td></tr></tbody></table></div></div></div></div></div>