Commit Graph

4566 Commits

Author SHA1 Message Date
Felix Krause
0ffd14e169 Updated times.parse() documentation 2016-11-14 19:18:23 +01:00
Felix Krause
434c27343e Parse 'Z' as valid timezone if offset is expected 2016-11-14 18:46:35 +01:00
Felix Krause
0587a57807 Assume local DST iff no timezone is given 2016-11-14 18:36:03 +01:00
Felix Krause
aa08c32c2b Improved -; fixed tests
* added prefix `-` operator for TimeInterval
 * improved `-` for both TimeInterval and TimeInfo
 * Fixed a DST test
2016-11-14 18:28:55 +01:00
Felix Krause
544a2cfe1a Fixed daylight saving time
* When formatting timezone, substract 1 hour from timezone when isDST
 * Do not depend DST in current timezone when parsing arbitrary date
   because formatted timestamps are never in DST.
 * On the way, removed an unnecessary line in parsing code which could
   cause bugs.
 * Added DST tests
2016-11-14 18:28:55 +01:00
Andreas Rumpf
4a4a3cdf67 Merge pull request #5009 from flyx/timezonefix2
Fixed timezone sign error
2016-11-14 16:44:01 +01:00
Felix Krause
91a0674961 Fixed timezone rendering, added test 2016-11-10 19:03:46 +01:00
Dominik Picheta
a29387424a Merge pull request #5011 from yglukhov/opensll-android
Fixed openssl for android
2016-11-09 20:39:41 +01:00
Yuriy Glukhov
2f3c8c2f34 Fixed openssl for android 2016-11-09 15:09:08 +02:00
Felix Krause
9b2aaf0df6 Fixed timezone sign error
* This was introduced in recent "cosmetic" fix. Not so cosmetic
   after all…
2016-11-08 20:57:53 +01:00
Andreas Rumpf
86b58e83ea Merge pull request #4994 from arnetheduck/nim-check-abi
add a simple sizeof checker to compare nim & c types
2016-11-08 14:08:36 +01:00
Araq
c66580911e htmlparser: different error corrections 2016-11-07 18:58:39 +01:00
Andreas Rumpf
4c79583a95 Merge pull request #5002 from goldenreign/time-compare-nosideeffect
Add 'noSideEffect' pragma for Time type's operators. Fixes #4981
2016-11-07 16:52:34 +01:00
Andreas Rumpf
be296c3274 Merge pull request #4984 from flyx/timezonefix
Fixed timezone handling
2016-11-07 14:28:54 +01:00
Zajcev Evgeny
b1a369d2fb [enh] isUpperAscii*, isLowerAscii* speedup execution by stopping
iteration as soon as possible
2016-11-07 13:21:17 +03:00
Felix Krause
6e604e2f9f More cosmetic changes
* Don't use factor var, it's overly complicated
 * Removed proc that's now unused
 * Better documented timezone field
2016-11-07 11:08:31 +01:00
goldenreign
63c450abdc Fix - operator for Time type for JS target 2016-11-07 14:26:27 +07:00
goldenreign
554105ff7c Add 'noSideEffect' pragma for Time type's operators 2016-11-07 12:14:28 +07:00
Andreas Rumpf
91bcf99d8a os.nim: posix copyFile showed a weird problem about buffer flushing; worked around via flushFile() call 2016-11-06 17:33:33 +01:00
Andreas Rumpf
5471b1eaca htmlparser: support parsing of class=foobar without quotes 2016-11-05 15:27:47 +01:00
Andreas Rumpf
0a6787f956 better error handling for osproc.nim 2016-11-05 09:04:16 +01:00
Felix Krause
f500b9f47b Cosmetic fixes
* Improved comments
 * Improved spacing
 * Use consts instead of magic numbers
2016-11-03 18:45:52 +01:00
Jacek Sieka
fa86571448 abi check: prefer nim constant to enable, document 2016-11-03 22:30:00 +08:00
Jacek Sieka
be1e3c4e09 add a simple sizeof checker to compare nim & c types 2016-11-03 21:11:39 +08:00
Andreas Rumpf
ee8c1c6f93 Merge pull request #4989 from endragor/empty-async-all
async all() now immediately completes if arg is empty
2016-11-03 10:54:19 +01:00
Ruslan Mustakov
f2bded180f async all() now immediately completes if arg is empty 2016-11-03 10:50:43 +07:00
Dominik Picheta
e784fdee45 Merge pull request #4970 from nigredo-tori/fix-4969
Fix problems with persistent HTTP connections
2016-11-02 18:57:00 +01:00
lihf8515
89d4574445 Update parsecfg.nim
Value includes double quotation marks.
2016-11-02 11:48:11 +08:00
Dmitry Polienko
4753149227 Implement suggestions from @dom96 2016-11-02 09:19:20 +07:00
Vladislav
9bc79b923c added description to fmWrite mode to be more exact 2016-11-01 22:33:09 +02:00
Felix Krause
9d5de8021b Use ISO 8601 format for times.$. Fixed tests.
* `$` now uses format() with explicit time zone.
 * Fixed errors in rendering "z", "zz" and "zzz"
 * Updated tests
2016-11-01 21:14:52 +01:00
Felix Krause
170745eb39 Removed tzname because it's broken
* No mapping between TimeInfo.tzname and TimeInfo.timezone
 * tzname of time.h is not well-defined, may have almost arbitrary
   length, and localization may differ
 * Code used hardcoded "UTC" string
2016-11-01 20:26:50 +01:00
Felix Krause
c1f0b7643c Fixed timezone offset parsing 2016-11-01 19:33:43 +01:00
Felix Krause
96234f36ca Made times.nim compile again to JS 2016-11-01 18:42:22 +01:00
Felix Krause
2ec6fe56ad Fixed timezone handling
* mktime always interprets its input as local time even on systems where
   gmtoff is present, so using it is utterly useless for anything but getting
   the local timezone. Removed all other usage of gmtoff to avoid confusion.
 * Properly handle timezone offset in toTime()
 * Properly handle timezone offset in `$` because asctime also interprets its
   input as local time
 * Also tried to fix the JavaScript implementation
2016-11-01 17:22:50 +01:00
Araq
47304372ca change TimeImpl for MingW 2016-11-01 14:11:46 +01:00
Araq
804af7e153 fixes bootstrapping 2016-11-01 10:25:34 +01:00
Andreas Rumpf
4884a56e38 Merge pull request #4980 from jlp765/tostring
Add nill value handling for seq/sets to system.CollectionToString()
2016-11-01 09:45:37 +01:00
jlp765
0cb5adb494 Add nill value handling for seq/sets 2016-11-01 13:36:03 +10:00
Felix Krause
af4c75a893 Fixes #4974 2016-10-31 20:46:50 +01:00
Araq
a94a0f27f2 updated development version 2016-10-31 20:16:31 +01:00
Dmitry Polienko
52f4590e98 Don't persist generated headers between requests 2016-10-31 09:46:50 +07:00
Dmitry Polienko
860264a382 Skip empty lines before status line
As recommended here: https://tools.ietf.org/html/rfc7230#section-3.5
2016-10-31 09:42:45 +07:00
Andreas Rumpf
0f3419685f Merge pull request #4964 from jangko/orderedtable_initialsize
fixes #4940
2016-10-27 15:37:45 +02:00
andri lim
bd560d6a4e fixes #4915 2016-10-27 12:22:12 +07:00
andri lim
a42e9b11a7 fixes #4940 2016-10-27 11:32:14 +07:00
Arne Döring
5864506ad3 fixed == and cmp to work on nimvm 2016-10-26 22:57:14 +02:00
Dominik Picheta
b2b2dcff08 Fixes #4959. 2016-10-26 21:26:48 +02:00
Yuriy Glukhov
6690cd15f4 Mark socketError as gcsafe 2016-10-26 20:17:40 +03:00
Felix Krause
7476e4fcb2 Fixes #4946 2016-10-24 22:36:21 +02:00