Giter Site home page Giter Site logo

Comments (13)

Lissy93 avatar Lissy93 commented on August 18, 2024 1

Thanks @CrazyWolf13 and @umolinar, I think I see the issue - Safari parses dates weirdly.
Fix coming in #1577

P.s. I'm a bit jealous about how many public holidays you get!! 🏖️😆

from dashy.

liss-bot avatar liss-bot commented on August 18, 2024

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on August 18, 2024

Linking this to #894

from dashy.

umolinar avatar umolinar commented on August 18, 2024

I have the same problem in safari (Monterey), the curious thing is that is only reads one date Christmas Day, but shows a different date that what is in the file. Show Christmas Day is December 24th, file says it is December 25th, all other dates show as "INVALID DATE". Very curious.
image

from dashy.

Lissy93 avatar Lissy93 commented on August 18, 2024

Which config did you use for this?
I'm interested to know the region, as that would let me send an API request, and see what weird format the dates are coming back in.

And if you pop open the browser console, and run navigator.language - what's the output?


I suspect the issue is with the toLocaleDataString call in MiscHelper.js. Maybe use moment.js instead? (see for example, this discussion).

Thanks @pdxrlk, but I'm hesitant to add in Moment.js as since that StackOverflow discussion was written, in 2010, we now have all the date parsing needed included in the browser APIs using toLocaleDateString, and unless you're using a reallyyyy old version of Safari, then it should be supported there as well.

from dashy.

umolinar avatar umolinar commented on August 18, 2024

from dashy.

Lissy93 avatar Lissy93 commented on August 18, 2024

Hey @umolinar,

Thanks for the info. I just tested, but it seems to work okay for me using the below config

image

  - type: public-holidays
    options:
      country: SV
      holidayType: all
      monthsToShow: 12
      lang: en

from dashy.

umolinar avatar umolinar commented on August 18, 2024

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on August 18, 2024

I can confirm on my iPad the dates do not show up.

from dashy.

umolinar avatar umolinar commented on August 18, 2024

from dashy.

umolinar avatar umolinar commented on August 18, 2024

from dashy.

umolinar avatar umolinar commented on August 18, 2024

from dashy.

CrazyWolf13 avatar CrazyWolf13 commented on August 18, 2024

Sorry last question, what directory and what file do I make these changes? Or do I need to reinstall?GraciasUlises MolinaOn May 9, 2024, at 6:09 PM, Alicia Sykes @.> wrote: Closed #1532 as completed via eea193a. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

As soon as a new release will happen, those changes will be included.
If you have docker, you can just re-pull the :latest tag of the dashy image.

If you need furter help let me know.

from dashy.

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.