akaltakht / nanakshahi

Ruby gem for nanakshahi calendar
MIT License
2 stars 1 forks source link

Incorrect String #1

Closed punjab closed 4 years ago

punjab commented 4 years ago

To duplicate

[I] ➜ irb                   
irb(main):001:0> require "nanakshahi"
=> true
irb(main):002:0> Date.today
=> #<Date: 2020-04-13 ((2458953j,0s,0n),+0s,2299161j)>
irb(main):003:0> Date.today.to_s
=> "2020-04-13"
irb(main):004:0> a = Nanakshahi.today
irb(main):005:0> a.to_s
=> "31 r, 552 Nanakshahi"
irb(main):006:0> a.to_gurmukhi
=> "nr r, lla ਨਾਨਕਸ਼ਾਹੀ"
punjab commented 4 years ago

Resolved.