Skip to content

Commit

Permalink
consistent JavScript usage
Browse files Browse the repository at this point in the history
  • Loading branch information
renejeglinsky committed Dec 19, 2024
1 parent 9dd8c39 commit 6809eda
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cds/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ entity sap.common.Timezones : CodeList {
}
```

[Learn more about time zones in Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) {.learn-more}
[Learn more about time zones in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) {.learn-more}

[Learn more about time zones in Java](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/ZoneId.html) {.learn-more}

Expand Down
2 changes: 1 addition & 1 deletion node.js/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ srv.before("UPDATE", "EntityName", (req) => {
});
```
Internally the [timestamp](events#timestamp) is a Javascript `Date` object, that is converted to the right format, when sent to the database. So if in any case a date string is needed, the best solution would be to initialize a Date object, that is then translated to the correct UTC String for the database.
Internally the [timestamp](events#timestamp) is a JavaScript `Date` object, that is converted to the right format, when sent to the database. So if in any case a date string is needed, the best solution would be to initialize a Date object, that is then translated to the correct UTC String for the database.
## Custom Streaming <Beta /> { #custom-streaming-beta }
Expand Down
2 changes: 1 addition & 1 deletion node.js/cds-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ LOG.info("it's a foo")

### _Logger usage → much like `console`_ { #logger-api }

Loggers returned by `cds.log()` look and behave very much like [Javascript's standard `console` object](https://nodejs.org/api/console.html) a log method for each [log level](#log-levels):
Loggers returned by `cds.log()` look and behave very much like [JavaScript's standard `console` object](https://nodejs.org/api/console.html) a log method for each [log level](#log-levels):

```js
cds.log() → {
Expand Down
2 changes: 1 addition & 1 deletion node.js/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ It features both [CAP service handlers](https://github.com/SAP-samples/cap-sflig

### Using `cds watch` <Since version="8.6.0" of="@sap/cds-dk" /> { #cds-watch}

Preferably use `cds watch` in a TypeScript project as if it was a Javascript project.
Preferably use `cds watch` in a TypeScript project as if it was a JavaScript project.
It detects TypeScript mode based on a `tsconfig.json` and run [`cds-tsx`](#cds-tsx) under the hood.

```sh
Expand Down

0 comments on commit 6809eda

Please sign in to comment.