Skip to content

Commit 9326f3a

Browse files
committed
Asia/Calcutta frens
* Intl.DateTimeFormat().resolvedOptions().timeZone returns legacy TZ names, including Asia/Calcutta * on Heroku we don't have tzdata-legacy package, thus the app cannot resolve this and other legacy TZs from user input * mapping legacy TZs on frontend is expensive — additional code to ship to end-user We could extend image builds with another buildpack, installing tzdata-legacy package. We could also include gem, which works immediately. Read more: https://hillenius.net/post/rangoon/ https://app.honeybadger.io/projects/58419/faults/117568048
1 parent f45c468 commit 9326f3a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rails_application/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ end
3232

3333
gem "infra", path: "../infra"
3434

35-
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
35+
gem "tzinfo-data"

rails_application/Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ GEM
331331
railties (>= 6.0.0)
332332
tzinfo (2.0.6)
333333
concurrent-ruby (~> 1.0)
334+
tzinfo-data (1.2025.2)
335+
tzinfo (>= 1.0.0)
334336
unparser (0.8.0)
335337
diff-lcs (~> 1.6)
336338
parser (>= 3.3.0)

0 commit comments

Comments
 (0)