Git Product home page Git Product logo

Comments (5)

CaptainTomBln avatar CaptainTomBln commented on June 25, 2024 1

Dear Gilmore,
thank you very much for your explanation and your hint to download that latest version of WP (sorry for not seeing this way in my confusion). Your expectation was right: The files in WP are okay. Something else must have corrupted my files.
Thomas

from moment-timezone.

gilmoreorless avatar gilmoreorless commented on June 25, 2024

Hi, this project is not associated with Wordpress, and doesn't produce any files called date.js or date.min.js.
My guess is that there is a separate project/plugin that includes this library, and that's what's adding the invalid characters.

To double-check this, try loading just a file produced by this project and see if the problem remains. Here are some examples:

from moment-timezone.

CaptainTomBln avatar CaptainTomBln commented on June 25, 2024

Dear Gilmore, thank you very much for your reply. In both files I found the following:
//! version : 0.5.40
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
The fourth line is pointing to this page.
The path of the two files is /wp-includes/js/dist/.
I'm wondering if any plugin may write into /wp-includes/?
In the code I also find an error message referring to https://momentjs.com/timezone/docs/. There I find a link to this Github Page.
Since the files refer to momentjs I will try to find some contact there.
Thanks, Thomas

from moment-timezone.

gilmoreorless avatar gilmoreorless commented on June 25, 2024

I downloaded a fresh copy of Wordpress to take a look. Yes, the date.js file includes both the moment and moment-timezone libraries, which are both part of the Moment group of projects (so raising a separate ticket for momentjs.com doesn't add anything). But the process that includes them in Wordpress is handled entirely by Wordpress, not this group.

Did you try opening either of the links I posted in my first reply?

I also suggest you download a fresh copy of Wordpress from https://wordpress.org/download/ and open the same date.js file in your editor. If that doesn't have a problem, then something else is corrupting your project, and it isn't caused by the source code in these libraries.

As for whether something else is writing to wp-includes, I have to repeat: This project is not associated with Wordpress in any way. We can't and won't provide support for unrelated software.

from moment-timezone.

sslincoco avatar sslincoco commented on June 25, 2024

from moment-timezone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.