Comments (3)
Thats out of scope for this gem. Much like Rails (which frankly, is where I use this gem most of the time), the server is set to one time zone and stays that way.
Supporting multiple time zones is tricky... far trickier than you realize unless you've done it before on several apps... trickier still if users in different time zones need to see the same data and somehow agree on dates and times. I've written apps used across many countries for the U.S. State Department, and I get dizzy every time we have to deal with date logic. Its gets all the more complicated because the clients never appreciate the complexities and end up specifying half-baked requirements around reporting periods, etc.
For something that will help you in this quest, check out my other gem, tz_magic.
https://github.com/bokmann/tz_magic
for a rails app, it gives you a reasonable way to figure out the timezone setting of the end user's browser.
I have considered writing a book on the subject of distributed apps and time zone support, but its a monumental effort, and that's not the topic I want to be famous for...
from business_time.
Sounds good!
from business_time.
Hey, @Nitrodist! We just released a gem called biz
that supports multiple schedule configurations. Check out the documentation and feel free to shoot me an email or open an issue if you have any questions.
from business_time.
Related Issues (20)
- Regression: 0.business_days.after(date) returns time before date HOT 1
- business_time_until doesn't account for holidays when called on Time objects HOT 1
- initiate business_time instead of global definitions HOT 3
- Short days before holiday HOT 1
- Still finding problems next business day for mondays HOT 3
- factory time vs. office time HOT 2
- Business day calculation wrong for weekends HOT 1
- Request for API for 'next business Friday' etc
- Wrong Result or unexpected not-business day ? HOT 1
- Business day calculations off when starting with a non-workday HOT 1
- business_days.after weird behaviour when not in workday and out of business hours. HOT 2
- Support Ruby 3.0.0 HOT 2
- No CHANGELOG for newer versions HOT 1
- [Bug] business_days.after inconsistencies HOT 3
- during_business_hours? returning nil since 0.10.0 HOT 3
- [Bug] Concurrency issues HOT 6
- rubocop-users: Rubocop-rails autocorrection mistake
- Support Time gem version >= 0.2.0 HOT 1
- Consider dropping external deps: sorted_set and rbtree dependencies? HOT 4
- The method from_now of Class: BusinessTime::BusinessDays returns different results under the same context HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from business_time.