• After installing this plugin and loading the post edit screen, I get a JS error:

    “Moment Timezone has no data for America/New_York”

    My timezone is set to America/New_York in the settings.

    Even though there is an error, updating the post seems to work ok except for custom post types, which do not load the editor screen at all. I’m greeted with a white screen with the message “The editor has encountered an unexpected error.”. Along with the above error in the console, I also get “TypeError: can’t access property “_stopmodifiedupdate”, i is undefined”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Cory Hughart

    (@cr0ybot)

    Oops, I see now your instructions for custom post type support. Still, the plugin should probably not prevent custom post type editing even when not explicitly told to support them.

    Plugin Author djuric

    (@djuric)

    hey @cr0ybot thanks a lot for your feedback!

    I couldn’t replicate this problem with America/New_York timezone on my end. After changing timezone to New York in Settings > General I tried adding/editing posts and changing modified date. No such error is showing anywhere in console.

    To me it looks like this error is coming from somewhere else. Date picker shouldn’t require any data for specified time zone.

    Regarding the other error, a non-built-in post type should have Custom Fields support declared in order to work with this plugin. This is part of the ‘supports’ argument of the register_post_type() function. Or if you are using plugin like CPT UI you need Custom Fields checkbox checked.

    However you made a good point, it shouldn’t prevent editing even if Custom Fields are not supported for particular post type. I think I should add plugin settings page in future so that it has to be explicitly enabled for other post types.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JS Moment Timezone Error’ is closed to new replies.