Giter Site home page Giter Site logo

Comments (9)

joshuabambrick avatar joshuabambrick commented on May 24, 2024

sorry, is moment timezone still maintained?

from moment-timezone.

icambron avatar icambron commented on May 24, 2024

It is. I just don't think anyone's gotten a chance to take a look yet.

from moment-timezone.

joshuabambrick avatar joshuabambrick commented on May 24, 2024

Ah, okay. That's great to hear. I was just wondering because I was considering trying to figure out how to fix this, but I really don't have time.

from moment-timezone.

mattjohnsonpint avatar mattjohnsonpint commented on May 24, 2024

I'll dive into this one soon. Sorry, just been backed up.

from moment-timezone.

joshuabambrick avatar joshuabambrick commented on May 24, 2024

awesome, thanks

from moment-timezone.

zgmnkv avatar zgmnkv commented on May 24, 2024

Maybe it's the same issue as #28, try this fix #28 (comment)

from moment-timezone.

joshuabambrick avatar joshuabambrick commented on May 24, 2024

that does appear to resolve the issue in the examples I gave. I will try integrating this back into my project and I will let you know how it goes

from moment-timezone.

icambron avatar icambron commented on May 24, 2024

Just a couple of thoughts while I'm here. Asia/Qatar doesn't have a DST, whearas Demascus not only has one, it has an especially horrible one. Anyway, I think @zgmnkv is probably right that it's the same as #28: the start of the month is being offset into the previous month, and then the day pushes it to the beginning of that month.

from moment-timezone.

timrwood avatar timrwood commented on May 24, 2024

This should all be behaving as expected in version 0.1.0.

moment().tz('Europe/Paris').startOf('M').startOf('y').format();
// 2014-01-01T00:00:00+01:00
moment().tz('Europe/Paris').startOf('M').add('h', 1).subtract('ms', 1).startOf('y').format();
// 2014-01-01T00:00:00+01:00
moment(1377986400000).tz('Europe/Paris').startOf('y').format();
// 2013-01-01T00:00:00+01:00

moment().tz('Europe/Paris').startOf('M').months(0).date(1).format() // 2014-01-01T00:00:00+01:00
moment().tz('Europe/Paris').startOf('M').date(1).months(0).format() // 2014-01-01T00:00:00+01:00

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.