DateTime doesn't work Moment Timezone problem
Basdl76 opened this issue · comments
I have UTC as 'timezone' => 'UTC',
in my app.php and DateTime::make('Active from', 'active_from')->nullable(),
But when loading www.domain.com//nova/resources/pages/1/edit?viaResource=&viaResourceId=&viaRelationship=
ia m getting this error:
Moment Timezone has no data for UTC. See http://momentjs.com/timezone/docs/#/data-loading/.
nova-gutenberg-laraberg:89
@Basdl76 This is an issue we are tracking with the underlying package: I'm baffled by this. If you have any suggestions, we're all ears!
@Basdl76 make sure you are running release 0.1.8 of this package. It is using an older version of Laraberg, which does not conflict with the datetimepicker.
Problem 1
- Installation request for genealabs/nova-gutenberg 0.1.8 -> satisfiable by genealabs/nova-gutenberg[0.1.8].
- genealabs/nova-gutenberg 0.1.8 requires van-ons/laraberg v0.0.6-beta -> satisfiable by van-ons/laraberg[v0.0.6-beta]
but these conflict with your requirements or minimum-stability.
Getting a problem. I have "van-ons/laraberg": "^1.0@RC",
@Basdl76 could you post your composer.json
for me?
"require": {
"php": "^7.1.3",
"barryvdh/laravel-cors": "^0.11.3",
"benjaminhirsch/nova-slug-field": "^1.2",
"doctrine/dbal": "^2.9",
"elevate-digital/nova-charcounted-fields": "dev-master",
"eluceo/ical": "^0.15.0",
"fideloper/proxy": "^4.0",
"genealabs/nova-gutenberg": "0.1.8",
"google/apiclient": "^2.2",
"kris/laravel-form-builder": "^1.20",
"laravel/framework": "5.8.*",
"laravel/nova": "*",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^5.8",
"opzet/ciweb-client": "^0.13.0",
"opzet/laravel-bag": "~4.0",
"opzet/laravel-payment": "^3.0",
"opzet/laravel-util": "^3.0",
"opzet/tcpdf-font-arial": "^1.0",
"opzet/tcpdf-font-sourcesanspro": "^1.0",
"opzet/vuecomponenten": "^1.0",
"opzet/zcalendar-downloads": "^4.0",
"owenmelbz/nova-radio-field": "^0.0.5",
"phpmetrics/phpmetrics": "^2.4",
"setasign/fpdi": "^2.2",
"setasign/fpdi-tcpdf": "^2.2",
"test/basfield": "*",
"van-ons/laraberg": "^1.0@RC",
"vimeo/psalm": "^3.4",
"zcms/afvalris-client": "^3.0"
},
@Basdl76 You have to remove the "van-ons/laraberg": "^1.0@RC",
entry from your composer.json
.
That did the trick also saving reusable content works. I thought laraberg had also tobe installed. Sorry!
@Basdl76 No worries, glad it is now working for you. I will release an update with the latest version of Laraberg integrated once we can get it working properly and not conflicting with Nova fields. :)