Commit Graph

10490 Commits

Author SHA1 Message Date
Konstantin Molchanov
0c121b38ec Tests: JS: Times: Fix text so that it works in timezones other then UTC+4.
`parse` returns TimeInfo with the local timezone, which may not be the same as the one in the original string. To compare the moments encoded in the original string and returned by `parse`, we normalize them to UTC.
2017-03-29 16:42:48 +04:00
Konstantin Molchanov
a9044117e9 Stdlib: Times: Use JS's "new Date" to convert TimeInfo to Time.
To use JS's Date creation from string, I moved the TimeInfo formatting code above the toTime proc declaration. Also, I changed the argument type for newDate from string to cstring for it to work.
2017-03-29 16:40:52 +04:00
Konstantin Molchanov
35cdb42e02 Tests: Times: JS: Add test for timestamp persistence. 2017-03-27 22:08:43 +04:00
Konstantin Molchanov
cc9d282348 Tests: Times: JS: Local timezone assignment during Time to TimeInfo conversion. 2017-03-27 22:01:37 +04:00
Konstantin Molchanov
6a583b6d2f Merge branch 'fix_time_offset_in_times_js' into improve-times-for-js 2017-03-27 21:48:39 +04:00
Konstantin Molchanov
9a67d0c1e4 Resolve conflic. 2017-03-27 21:46:43 +04:00
Konstantin Molchanov
2351d5d314 Merge branch 'calculate_yearday_in_timeinfo_js' into fix_time_offset_in_times_js 2017-03-27 21:38:19 +04:00
Konstantin Molchanov
bf654563b1 Merge branch 'improve-times-for-js' into fix_time_offset_in_times_js 2017-03-27 21:32:25 +04:00
Konstantin Molchanov
41e83f7a34 Tests: Times: JS: Fix test. 2017-03-27 21:28:31 +04:00
Konstantin Molchanov
1a5e880f5a Tests: Times: JS: Add test for yearday attribute. 2017-03-27 21:14:02 +04:00
Konstantin Molchanov
bef86f55ce Times: JS: Add yearday to TimeInfo.
Add yearday calculation to getLocalTime and getGMTime, so that yearday is not 0 for TimeInfo instances under JS backend.

Yearday 0 has no sense and contradicts the behaviour under C backend, where yearday is an int from 1 to 365, i.e. cannot be 0 even theoretically.
2017-03-27 00:14:48 +04:00
Konstantin Molchanov
3ebffb2a00 Times: JS: Remove implicit UTC convesion.
The conversion would produce incorrect timestamp.
2017-03-26 23:50:02 +04:00
Andreas Rumpf
d02486aa48 compiler: better error messages (#5613) 2017-03-26 20:24:06 +02:00
pgkos
481d8ba24a Fix segfault in db_mysql fastRows (#5605) 2017-03-26 09:42:15 +02:00
Andreas Rumpf
1268ca79e5 fixes #5599 (#5610) 2017-03-26 09:30:59 +02:00
Arne Döring
21b03257ef update linenoise (#5357) 2017-03-25 09:28:26 +01:00
Konstantin Molchanov
80ffae62fb JS: Times: Add timezone prop to TimeInfo. (#5581) 2017-03-25 09:26:34 +01:00
Andreas Rumpf
0d8a503e45 fixes #5597; wrong eager template instantiation in generic context (#5601) 2017-03-24 07:35:12 +01:00
Dmitriy Fomichev
268a1f7cfd Deques compilation error fix (#5591) 2017-03-24 00:09:51 +01:00
Arne Döring
d4b4cad4ea Added few documentation lines for the unsafeAddr operator. (#5362) 2017-03-23 23:49:07 +01:00
Anatoly Galiulin
434a7c8426 Fix posix version of moveFile between different filesystems (#5580) 2017-03-23 23:40:03 +01:00
andri lim
568c954062 fixes #5241, fixes #5411 inherit from specialized generic typeRel problem (#5573) 2017-03-23 23:39:29 +01:00
Dominik Picheta
0cad2896ae Implement asyncfile.readToStream. 2017-03-23 21:34:53 +01:00
Dominik Picheta
f2ca6021dc Implement requestAnimationFrame and cancelAnimationFrame in dom module. 2017-03-23 21:34:32 +01:00
Dominik Picheta
d221e6a35c Improve os.getFileSize documentation to specify the unit. 2017-03-23 21:34:03 +01:00
def
ab31b776ef Fix typo 2017-03-23 21:29:10 +01:00
Araq
93f0f1c6e4 fixes #5598 2017-03-23 16:43:21 +01:00
Eugene Kabanov
254fbcc548 Fixes #4719. (#5585) 2017-03-23 16:13:38 +01:00
Emery Hemingway
d508303fad fix empty link file list during external compilation (#5577) 2017-03-23 13:27:16 +01:00
zah
be174fc3c7 Fix generic forward declarations; fixes #4104; fixes #4908 (#5566) 2017-03-23 12:40:57 +01:00
andri lim
70237e1fdd fix taliasinequality test case (#5587) 2017-03-22 08:40:15 +01:00
Ruslan Mustakov
310b73b556 Reduce the scope of stackTrace var (#5583)
Fixes #5571.
2017-03-22 01:06:05 +01:00
jlp765
c8954b2b34 tut1.rst: Slices indices explanation (#5569) 2017-03-22 01:04:37 +01:00
Araq
c9b86ebce8 koch: cleanup its help output, remove cruft 2017-03-21 13:17:23 +01:00
Araq
3962c6339f nimsuggest: die with a project dir/file that doesn't exist 2017-03-21 13:09:57 +01:00
Araq
e01d2244e4 make semObjConstr robust for nimsuggest 2017-03-21 13:02:38 +01:00
Araq
d862d22723 koch: vcc is also built with 'koch tools' 2017-03-21 12:04:14 +01:00
Konstantin Molchanov
742c7e1179 JS: Times: Add timezone prop to TimeInfo. 2017-03-21 13:50:43 +04:00
Eugene Kabanov
8310d252c2 Update testament to include all tests from tests/threads category. (#5576) 2017-03-20 20:20:26 +01:00
Andreas Rumpf
2d0ee2c8ab mark symbols in getAst context as used 2017-03-20 11:44:58 +01:00
Andreas Rumpf
ca673ab1af add test case for getAst regression 2017-03-20 10:56:15 +01:00
Andreas Rumpf
a6b0af539b revert getAst handling to not use overloading resolution 2017-03-20 10:56:15 +01:00
Andreas Rumpf
01b2728ec8 fixes a potential endless loop 2017-03-20 10:56:15 +01:00
Andreas Rumpf
3fafd546d5 nimsuggest: prefixes of abbreviations don't count 2017-03-20 10:56:15 +01:00
jcosborn
3bffb3ba35 fix getTypeImpl for tyEnum (#5568)
* fixed getTypeImpl for tyEnum
* fixed getType for enum and updated release notes about change
2017-03-19 20:34:27 +01:00
zah
1d6018726e fix #5296 (#5565) 2017-03-19 20:33:21 +01:00
Eugene Kabanov
e20af5cec6 Fix #4972. (#5567) 2017-03-19 07:16:13 +01:00
Araq
156bd29c68 update news.rst about the breaking changes 2017-03-18 21:13:27 +01:00
Ryan Gonzalez
244bf68fb0 Fix #5550 (#5553) 2017-03-18 21:05:12 +01:00
Araq
d365f1a81a resolved unittest conflict 2017-03-18 20:59:10 +01:00