Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

DateTime doesn't work Moment Timezone problem #12

Closed
Basdl76 opened this issue Aug 7, 2019 · 8 comments
Closed

DateTime doesn't work Moment Timezone problem #12

Basdl76 opened this issue Aug 7, 2019 · 8 comments
Assignees

Comments

@Basdl76
Copy link

Basdl76 commented Aug 7, 2019

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

@mikebronner
Copy link
Owner

@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!

VanOns/laraberg#45

@mikebronner mikebronner self-assigned this Aug 7, 2019
@mikebronner mikebronner added the bug Something isn't working label Aug 7, 2019
@mikebronner
Copy link
Owner

@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.

@mikebronner mikebronner removed the bug Something isn't working label Aug 7, 2019
@Basdl76
Copy link
Author

Basdl76 commented Aug 8, 2019

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",

@mikebronner
Copy link
Owner

@Basdl76 could you post your composer.json for me?

@Basdl76
Copy link
Author

Basdl76 commented Aug 8, 2019

"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"
},

@mikebronner
Copy link
Owner

@Basdl76 You have to remove the "van-ons/laraberg": "^1.0@RC", entry from your composer.json.

@Basdl76
Copy link
Author

Basdl76 commented Aug 8, 2019

That did the trick also saving reusable content works. I thought laraberg had also tobe installed. Sorry!

@mikebronner
Copy link
Owner

@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. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants