--- lib/stdlib/src/calendar.erl.orig 2015-03-31 12:32:52 UTC +++ lib/stdlib/src/calendar.erl @@ -279,11 +279,19 @@ local_time_to_universal_time(DateTime, I DateTime1 :: datetime1970(), DateTime :: datetime1970(). local_time_to_universal_time_dst(DateTime) -> - UtDst = erlang:localtime_to_universaltime(DateTime, true), - Ut = erlang:localtime_to_universaltime(DateTime, false), %% Reverse check the universal times - LtDst = erlang:universaltime_to_localtime(UtDst), - Lt = erlang:universaltime_to_localtime(Ut), + {UtDst, LtDst} = + try + UtDst0 = erlang:localtime_to_universaltime(DateTime, true), + {UtDst0, erlang:universaltime_to_localtime(UtDst0)} + catch error:badarg -> {error, error} + end, + {Ut, Lt} = + try + Ut0 = erlang:localtime_to_universaltime(DateTime, false), + {Ut0, erlang:universaltime_to_localtime(Ut0)} + catch error:badarg -> {error, error} + end, %% Return the valid universal times case {LtDst,Lt} of {DateTime,DateTime} when UtDst =/= Ut -> value='e834468ee6a14ce47ac0a078484c4b460afa87c0'/> FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
Commit message (Expand)AuthorAgeFilesLines
* Drop support for Linux Fedora 10 (ports part)Rene Ladan2017-01-0116-297/+0
* textproc/rubygem-elasticsearch: update to 5.0.0Steve Wills2016-12-312-3/+4
* textproc/rubygem-elasticsearch-api: update to 5.0.0Steve Wills2016-12-312-3/+4
* textproc/rubygem-elasticsearch-transport: update to 5.0.0Steve Wills2016-12-312-3/+4
* textproc/rubygem-nokogumbo: update to 1.4.10Steve Wills2016-12-312-3/+6
* textproc/rubygem-nokogiri: update to 1.7.0Steve Wills2016-12-313-9/+9
* Update to 0.2.Vanilla I. Shu2016-12-312-4/+4
* Update to 2.3.Vanilla I. Shu2016-12-312-5/+4
* Update to 1.0.1Matthew Seaman2016-12-312-4/+4
* - Remove p5-Module-Build from BUILD_DEPENDS: already brought in by USE_PERL5=...Sunpoet Po-Chuan Hsieh2016-12-311-2/+2
* Update to 1.5.5Matthew Seaman2016-12-302-4/+4
* Revert sphinx upgrade as it breaks packaging of most ports depending on itAntoine Brodin2016-12-302-8/+8
* - Update to 1.5.1Kris Moore2016-12-302-7/+8
* - Remove bogus (in presence of USE_GITHUB) USES=tar*Dmitry Marakasov2016-12-294-13/+16
* - Update to 0.0.13Dmitry Marakasov2016-12-292-8/+10
* Remove unnecessary commentEmanuel Haupt2016-12-291-3/+0
* A utility to split a diff patch into separate sections. It also featuresEmanuel Haupt2016-12-295-0/+78
* textproc/rubygem-twitter-text: update to 1.14.3Steve Wills2016-12-292-3/+4
* textproc/rubygem-terminal-table: update to 1.7.3Steve Wills2016-12-292-3/+4
* textproc/rubygem-syntax: update to 1.2.1Steve Wills2016-12-292-3/+4
* textproc/rubygem-spreadsheet: update to 1.1.4Steve Wills2016-12-292-3/+4
* textproc/rubygem-scss_lint: update to 0.51.0Steve Wills2016-12-292-3/+4
* textproc/rubygem-sanitize: update to 4.4.0Steve Wills2016-12-292-3/+4
* textproc/rubygem-redcarpet: update to 3.4.0Steve Wills2016-12-292-3/+4
* textproc/rubygem-rdiscount: update to 2.2.0.1Steve Wills2016-12-292-3/+4
* textproc/rubygem-pretty-xml: update to 0.2.1Steve Wills2016-12-292-4/+4
* textproc/rubygem-ox: update to 2.4.7Steve Wills2016-12-292-4/+4
* textproc/rubygem-liquid: update to 4.0.0Steve Wills2016-12-292-4/+5
* textproc/rubygem-libxml-ruby: update to 2.9.0Steve Wills2016-12-292-3/+4
* textproc/rubygem-kramdown: update to 1.13.1Steve Wills2016-12-292-3/+4
* textproc/rubygem-jekyll-sitemap: update to 0.12.0Steve Wills2016-12-292-3/+4
* textproc/rubygem-itextomml: update to 1.5.5Steve Wills2016-12-292-3/+4
* textproc/rubygem-html-pipeline: update to 2.4.2Steve Wills2016-12-292-3/+4
* textproc/rubygem-github-linguist: update to 5.0.0Steve Wills2016-12-292-3/+4
* textproc/rubygem-gemoji: update to 3.0.0Steve Wills2016-12-292-3/+4
* textproc/rubygem-asciidoctor: update to 1.5.5Steve Wills2016-12-292-3/+4
* textproc/ruby-xmlscan: deprecateSteve Wills2016-12-281-0/+3
* textproc/ruby-xml-configfile: deprecateSteve Wills2016-12-281-0/+3
* textproc/ruby-rss.alt: deprecateSteve Wills2016-12-281-0/+3
* textproc/ruby-rss: deprecateSteve Wills2016-12-281-0/+3
* ruby-htmlsplit: deprecateSteve Wills2016-12-281-0/+3
* ruby-htmlrepair: deprecateSteve Wills2016-12-281-0/+3
* Update to 1.0.0Matthew Seaman2016-12-285-47/+11
* Update to 1.5.4Matthew Seaman2016-12-282-4/+4
* Update to 2.1.0.Hiroki Sato2016-12-283-15/+14
* Change maintainership of the pear-* ports.Raphael Kubo da Costa2016-12-281-1/+1
* Update to 2016.11.21.Raphael Kubo da Costa2016-12-282-4/+4
* Update bibtool to 2.66Johan van Selst2016-12-273-4/+6
* Update to GNU Grep 2.27 (bugfix release)Johan van Selst2016-12-272-4/+4
* Update to 1.5.3Matthew Seaman2016-12-272-4/+4
* - Add LICENSEDmitry Marakasov2016-12-271-1/+6
* - Update to 2016.12.25Sunpoet Po-Chuan Hsieh2016-12-272-4/+4
* Add an EXPIRATION_DATE to DEPRECATED ports without one.Mathieu Arnold2016-12-261-0/+1
* Avoid duplicating USES=localbaseAntoine Brodin2016-12-262-2/+3
* Build textproc/py3-hunspell for default version of python3 instead of 3.5Antoine Brodin2016-12-262-2/+2
* We don't need 4 versions of www/py-requests, 2 are enoughAntoine Brodin2016-12-261-2/+5
* Adding py-hunspell, a Python module for the Hunspell spellchecker engine.Thierry Thomas2016-12-255-0/+46
* CMAKE_INSTALL_MANDIR is not set correctly by default, no need to override itDmitry Marakasov2016-12-251-1/+0
* - Remove dependency on the python3 symlinkAntoine Brodin2016-12-251-2/+3
* - Remove dependency on the python3 symlinkAntoine Brodin2016-12-241-2/+3
* - Update to 0.28Sunpoet Po-Chuan Hsieh2016-12-242-4/+4
* - Update to 6.6.0Sunpoet Po-Chuan Hsieh2016-12-242-4/+4
* Update to 1.5.1Matthew Seaman2016-12-242-4/+4
* - Update to 1.3TAKATSU Tomonari2016-12-242-4/+4
* Update to 2.4.4Raphael Kubo da Costa2016-12-242-3/+4
* Update to 1.9Olivier Duchateau2016-12-232-4/+4
* - Update to 1.8.0Wen Heping2016-12-233-19/+4
* Use @post* where appropriatedBaptiste Daroussin2016-12-231-2/+2
* - Pass maintainership to submitterWen Heping2016-12-224-4/+4
* - Update to 2016.003Sunpoet Po-Chuan Hsieh2016-12-222-6/+4
* - Update to 0.27Sunpoet Po-Chuan Hsieh2016-12-223-23/+5
* Update sqlalchemy dependency to py-sqlalchemy10Matthew Seaman2016-12-221-1/+2
* Update to 6.3.0Matthew Seaman2016-12-224-60/+117
* Add tests.Mathieu Arnold2016-12-211-0/+2
* - Add LICENSEDmitry Marakasov2016-12-211-0/+5
* - Update to 1.8.0Wen Heping2016-12-212-4/+4
* - Update to 2016.12.18Sunpoet Po-Chuan Hsieh2016-12-212-4/+4
* - Update to 0.22Sunpoet Po-Chuan Hsieh2016-12-213-4/+6
* Update to 0.2.0Matthew Seaman2016-12-202-5/+5
* Update to 0.2.0Matthew Seaman2016-12-202-5/+5
* The DOCS option must not install doxygen.Mathieu Arnold2016-12-202-47/+51
* Update KDE Frameworks to 5.29.0Tobias C. Berner2016-12-1910-18/+70
* - Update to 3-8-1Danilo Egea Gondolfo2016-12-192-4/+4
* textproc/icdiff: Update to 1.8.6Ben Woods2016-12-192-4/+4
* - Update to 1.3.1Wen Heping2016-12-182-4/+4