3 ms·
You have to make implementations in all plataforms to make sure that they behave exactly the same way.
by huherto 13y ago
You have to make implementations in all plataforms to make sure that they behave exactly the same way.
- jlgreco 13y agoYes, that is right. So use the tzinfo on systems where it exists, and restrict the more complex implementations of the same interface to systems where it does not (Windows).
- untog 13y agoBut how can you rely on tzinfo and your custom implementation behaving the same? How do you know what version of tzinfo you're running against? What if it changes? The expensive, costly answer is to rigorously test each version and keep up to date with every change on an external dependency managed by a organisation you have no control over. The other answer is to just use your package everywhere.