Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-07

A new PascalTZ - time zone database for FPC / Lazarus

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Denis Kozlov

Hello,

I have forked PascalTZ <https://github.com/dezlov/PascalTZ> library about a year ago with a goal to fix many parsing and time zone conversion problems, refactor existing code and implement a testing framework.

This work has just finished with a milestone release of PascalTZ 2.0 <https://github.com/dezlov/PascalTZ/releases/tag/v2.0>. Master branch also contains a design/runtime package for Lazarus IDE.

PascalTZ 2.0 is backward compatible with code written for PascalTZ 1.0, but the usage has been somewhat simplified with addition of new methods:

// Load time zone database from "tzdata" directory PascalTZ.DatabasePath := 'tzdata'; // Convert current time in Paris to Chicago time PascalTZ.Convert(Now, 'Europe/Paris', 'America/Chicago');

Should the old PascalTZ in Lazarus CCR
<https://sourceforge.net/projects/lazarus-ccr/files/PascalTZ/> be removed and the PascalTZ article <http://wiki.freepascal.org/PascalTZ> on the wiki reflect the new home?

Regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160719/a0c0143b/attachment.html>

Reply by email

José Mejuto
to Denis Kozlov
Denis Kozlov wrote
PascalTZ 2.0 is backward compatible with code written for PascalTZ 1.0, but the usage has been somewhat simplified with addition of new methods:

Hello,

Thank you for fixing and updating the code.

Should the old PascalTZ in Lazarus CCR <https://sourceforge.net/projects/lazarus-ccr/files/PascalTZ/> be removed and the PascalTZ article <http://wiki.freepascal.org/PascalTZ> on the wiki reflect the new home?

No problem by my side, but I think that a copy of PascaTZ should be kept in the Lazarus CCR, maybe not updated on every update, only in major revisions with a note about the live updated repository.

IMHO 1.0 version should be removed.

I was not aware of such amount of bugs :) in special the double frees.

Reply by email

Denis Kozlov
to José Mejuto
José Mejuto wrote 7 lines
No problem by my side, but I think that a copy of PascaTZ should be kept in the Lazarus CCR, maybe not updated on every update, only in major revisions with a note about the live updated repository. IMHO 1.0 version should be removed.

I have updated PascalTZ wiki article <http://wiki.freepascal.org/PascalTZ>.

Can someone upload PascalTZ 2.0
<https://github.com/dezlov/PascalTZ/releases/tag/v2.0> to Lazarus CCR?

Thanks,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160720/f555e8d9/attachment.html>

Reply by email