Giter VIP home page Giter VIP logo

Comments (8)

jmettraux avatar jmettraux commented on June 15, 2024

Hello,

thanks for pointing that out.

require 'tzinfo'

p begin ::TZInfo::Timezone.get('+11') rescue nil; end         # ==> nil
p begin ::TZInfo::Timezone.get('+1100') rescue nil; end       # ==> nil
p begin ::TZInfo::Timezone.get('UTC/+11') rescue nil; end     # ==> nil
p begin ::TZInfo::Timezone.get('Etc/GMT-11') rescue nil; end  # ==> #<TZInfo::DataTimezone: Etc/GMT-11>


require 'fugit'

p Fugit::VERSION  # ==> '1.1.5'

p Fugit::Cron.parse('29 9 16 * * +11')         # ==> nil
p Fugit::Cron.parse('29 9 16 * * +1100')       # ==> #<Fugit::Cron:...>
p Fugit::Cron.parse('29 9 16 * * UTC/+11')     # ==> nil
p Fugit::Cron.parse('29 9 16 * * Etc/GMT-11')  # ==> nil

I can't find UTC/+11 in the list of tz database time zones and TZInfo doesn't know about it. If you have a need for it, please tell me. (By the way are you on Windows?)

That leaves me Etc/GMT-11 to enable.

from fugit.

jmettraux avatar jmettraux commented on June 15, 2024

Hello @Tolsto,

please tell me if the changes I made fix the issue for you.

If you really need UTC/+11, please tell me why you need it.

Thanks in advance.

from fugit.

Tolsto avatar Tolsto commented on June 15, 2024

Thanks for the fast reply @jmettraux
You are right, UTC/+11 doesn't exist. Sorry for the bad example. I'm not on Windows but Linux.
Your new code works for me. However, only for negative offsets. Something like Etc/GMT+5 still doesn't work.

from fugit.

jmettraux avatar jmettraux commented on June 15, 2024

Hello @Tolsto,

my bad. The above commit should solve that.

Thanks for the rapid feedback you gave me.

from fugit.

Tolsto avatar Tolsto commented on June 15, 2024

Thank you, I can confirm that it works now. Do you already know when you'll publish the next release that will include this?

from fugit.

jmettraux avatar jmettraux commented on June 15, 2024

You're welcome.

I'm thinking about releasing tomorrow, along with an et-orbi accommodation for the same Etc/GMT+11 and friends. I hope that matches your schedule.

from fugit.

Tolsto avatar Tolsto commented on June 15, 2024

👍

from fugit.

jmettraux avatar jmettraux commented on June 15, 2024

Fugit 1.1.6 is out.

Thanks again!

from fugit.

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.