Skip to content

Commit 3bd4dc1

Browse files
committed
Added NOW global alias to F.datetime.
1 parent 607d0a7 commit 3bd4dc1

6 files changed

Lines changed: 96 additions & 87 deletions

File tree

builders.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ SchemaBuilderEntity.prototype.default = function() {
14791479
break;
14801480
// date
14811481
case 5:
1482-
item[property] = type.isArray ? [] : F.datetime;
1482+
item[property] = type.isArray ? [] : NOW;
14831483
break;
14841484
// schema
14851485
case 7:
@@ -4227,7 +4227,7 @@ RESTBuilder.prototype.exec = function(callback) {
42274227
output.headers = headers;
42284228
output.hostname = hostname;
42294229
output.cache = false;
4230-
output.datetime = F.datetime;
4230+
output.datetime = NOW;
42314231

42324232
if (self.$schema) {
42334233

changes.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
- added: `U.streamer2()` same functionality as `U.streamer()` but it returns `Buffer` instead of `String`
4646
- added: `Number.round([precision])`
4747
- added: `UID([type])` supports custom types, e.g. `UID('users')` or `UID('orders')`
48-
- added: `REQUEST()` alias to `U.request()`
48+
- added: `REQUEST()` global method, it's alias to `U.request()`
49+
- added: `NOW` global property, it's alias to `F.datetime`
4950

5051
- updated: (IMPORTANT) NoSQL binary divides files to independent directories for 1000 files per directory
5152
- updated: `GROUP()` by adding a new argument `url_prefix`

0 commit comments

Comments
 (0)