helmbold / ct-todo Goto Github PK
View Code? Open in Web Editor NEWCode zu c't-Artikeln zur Entwicklung einer TODO-App mit Spring Boot, Kotlin und Angular
Code zu c't-Artikeln zur Entwicklung einer TODO-App mit Spring Boot, Kotlin und Angular
Der Test mit dem in der Datenbank gespeicherten dueDate schlägt jetzt in der Sommrzeit natürlich fehl.
val date = LocalDateTime.of(
2020, 3, 23, 12, 0, 0, 0
).atOffset(
ZoneOffset.systemDefault()
.rules
.getOffset(LocalDateTime.now())
)
Müsste es nicht eigentlich so lauten:
val localDate = LocalDateTime.of(
2020, 3, 23, 12, 0, 0, 0
)
val date = localDate.atOffset(
ZoneOffset.systemDefault()
.rules
.getOffset(localDate)
)
Wir brauchen ja den Offset vom Datum, und nicht von jetzt. Das Datum liegt in der Normalzeit.
Interessanterweise ist für Kotlin/Java am Tag der Umstellung (hier 29.3.2020) bis einschließlich 2:59:59 Uhr alles noch Normalzeit, für die Datenbank aber ab 2:00:00 Uhr alles schon (richtigerweise) Sommerzeit. Die Zeiten von 2:00:00 bis 2:59:59 gibt es an dem Tag ja auch nicht.
Edit:
Sorry, gefunden. Statt 'adapter' heißt es hier 'apapter'.
Hello,
I have cloned this repository and tried then the descriptions in CT 9 to 12/2022.
But the step from CT 11/2022 page 150 fail.
The following is the output when I tried again:
cd C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install -g @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
changed 219 packages, and audited 220 packages in 17s
25 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install --location=global @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
changed 219 packages, and audited 220 packages in 10s
25 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm --version
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
8.14.0
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng serve --open
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> git clean -fxd
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng new todo --defaulöts --routing --strict
Error: This command is not available when running the Angular CLI inside a workspace.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> cd ..
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> mkdir workspace
Verzeichnis: C:\Users\juerg\OneDrive\Dokumente\ct-todo
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 17.07.2022 16:23 workspace
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> cd .\workspace\
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaulöts --routing --strict
Error: Unknown argument: defaulöts
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaults --routing --strict
? Would you like to share anonymous usage data about this project with the Angular Team at
Google under Google’s Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.io/analytics. No
Global setting: disabled
Local setting: No local workspace configuration file.
Effective status: disabled
CREATE todo/angular.json (2912 bytes)
CREATE todo/package.json (1035 bytes)
CREATE todo/README.md (1058 bytes)
CREATE todo/tsconfig.json (863 bytes)
CREATE todo/.editorconfig (274 bytes)
CREATE todo/.gitignore (548 bytes)
CREATE todo/.browserslistrc (600 bytes)
CREATE todo/karma.conf.js (1421 bytes)
CREATE todo/tsconfig.app.json (287 bytes)
CREATE todo/tsconfig.spec.json (333 bytes)
CREATE todo/.vscode/extensions.json (130 bytes)
CREATE todo/.vscode/launch.json (474 bytes)
CREATE todo/.vscode/tasks.json (938 bytes)
CREATE todo/src/favicon.ico (948 bytes)cd C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install -g @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
changed 219 packages, and audited 220 packages in 17s
25 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm install --location=global @angular/cli
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
changed 219 packages, and audited 220 packages in 10s
25 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> npm --version
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
8.14.0
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng serve --open
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> git clean -fxd
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> ng new todo --defaulöts --routing --strict
Error: This command is not available when running the Angular CLI inside a workspace.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\angular> cd ..
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> mkdir workspace
Verzeichnis: C:\Users\juerg\OneDrive\Dokumente\ct-todo
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 17.07.2022 16:23 workspace
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo> cd .\workspace\
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaulöts --routing --strict
Error: Unknown argument: defaulöts
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng new todo --defaults --routing --strict
? Would you like to share anonymous usage data about this project with the Angular Team at
Google under Google’s Privacy Policy at https://policies.google.com/privacy. For more
details and how to change this setting, see https://angular.io/analytics. No
Global setting: disabled
Local setting: No local workspace configuration file.
Effective status: disabled
CREATE todo/angular.json (2912 bytes)
CREATE todo/package.json (1035 bytes)
CREATE todo/README.md (1058 bytes)
CREATE todo/tsconfig.json (863 bytes)
CREATE todo/.editorconfig (274 bytes)
CREATE todo/.gitignore (548 bytes)
CREATE todo/.browserslistrc (600 bytes)
CREATE todo/karma.conf.js (1421 bytes)
CREATE todo/tsconfig.app.json (287 bytes)
CREATE todo/tsconfig.spec.json (333 bytes)
CREATE todo/.vscode/extensions.json (130 bytes)
CREATE todo/.vscode/launch.json (474 bytes)
CREATE todo/.vscode/tasks.json (938 bytes)
CREATE todo/src/favicon.ico (948 bytes)
CREATE todo/src/index.html (290 bytes)
CREATE todo/src/main.ts (372 bytes)
CREATE todo/src/polyfills.ts (2338 bytes)
CREATE todo/src/styles.css (80 bytes)
CREATE todo/src/test.ts (749 bytes)
CREATE todo/src/assets/.gitkeep (0 bytes)
CREATE todo/src/environments/environment.prod.ts (51 bytes)
CREATE todo/src/environments/environment.ts (658 bytes)
CREATE todo/src/app/app-routing.module.ts (245 bytes)
CREATE todo/src/app/app.module.ts (393 bytes)
CREATE todo/src/app/app.component.html (23364 bytes)
CREATE todo/src/app/app.component.spec.ts (1067 bytes)
CREATE todo/src/app/app.component.ts (208 bytes)
CREATE todo/src/app/app.component.css (0 bytes)
√ Packages installed successfully.
Directory is already under version control. Skipping initialization of git.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng serve --open
Error: This command is not available when running the Angular CLI outside a workspace.
CREATE todo/src/index.html (290 bytes)
CREATE todo/src/main.ts (372 bytes)
CREATE todo/src/polyfills.ts (2338 bytes)
CREATE todo/src/styles.css (80 bytes)
CREATE todo/src/test.ts (749 bytes)
CREATE todo/src/assets/.gitkeep (0 bytes)
CREATE todo/src/environments/environment.prod.ts (51 bytes)
CREATE todo/src/environments/environment.ts (658 bytes)
CREATE todo/src/app/app-routing.module.ts (245 bytes)
CREATE todo/src/app/app.module.ts (393 bytes)
CREATE todo/src/app/app.component.html (23364 bytes)
CREATE todo/src/app/app.component.spec.ts (1067 bytes)
CREATE todo/src/app/app.component.ts (208 bytes)
CREATE todo/src/app/app.component.css (0 bytes)
√ Packages installed successfully.
Directory is already under version control. Skipping initialization of git.
PS C:\Users\juerg\OneDrive\Dokumente\ct-todo\workspace> ng serve --open
Error: This command is not available when running the Angular CLI outside a workspace.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.