Comments (6)
1:
The website should display the time for GMT-5 which is the server time for Genshin's "America" server. It either means your browser's timezone is GMT-6, or it's a Javascript date error (very very unlikely).
This code https://github.com/chiyadev/genshin-schedule/blob/master/src/time.tsx#L32 is responsible for time calculation. Please let me know if there is an error.
2:
Sure, that sounds feasible!
from genshin-schedule.
I think the server just has a single time zone and doesn't account for the multiple time zones in America.
I did some random testing on my browser with getHours() + getMinutes() and both were accurate to the time on my computer currently.
Nothing looks wrong with your code either, so it seems that Genshin might just be an hour off instead.
from genshin-schedule.
How about like this? Rather than adding another line, I think keeping it simple and showing the time in brackets is ok.
from genshin-schedule.
Looks and sounds good to me!
from genshin-schedule.
Implemented!
from genshin-schedule.
I believe the reason the website's time was wrong is because it didn't account for DST being ahead 1 hour.
Ever since DST turned the hour back, the website has been accurate to my computer's clock along with my phone's clock.
from genshin-schedule.
Related Issues (20)
- Merging of `sync` project into `web`
- Show timestamp of when resin and realm currency became full HOT 1
- Can I logon with github accounts? HOT 1
- Outdated map HOT 1
- Farming helper / counter HOT 9
- Support for custom timezones
- Show realm currency steps and sync with the resin estimator HOT 11
- i18n
- Multiple resin notifications and estimated time in notification messages
- Use `Accept-Languages` header to determine default language
- Marking tasks as done using the Discord bot
- Allow crossing off trounce domains for the week HOT 5
- Traveller is not available as a character
- Use `scrollRestoration` next.js flag
- +60 resin button for Transient/Fragile Resin HOT 5
- List of incorrect/missing database entries
- Sometimes Logout button refuses to work
- Missing Song of Broken Pines
- Resource respawn time algorithm needs to be updated
- 2.1 CHARACTERS
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 genshin-schedule.