Complete source code of https://mytime.io - a website to convert any time zone to your local time zone.
git clone https://github.com/dommmel/mytime.io
cd mytime.io
bundle install
ruby app.rb
Complete source code of https://mytime.io - a website to convert any time zone to your local time zone.
Home Page: https://mytime.io
Complete source code of https://mytime.io - a website to convert any time zone to your local time zone.
git clone https://github.com/dommmel/mytime.io
cd mytime.io
bundle install
ruby app.rb
Hello team, maybe bacause i'm a newbie but I tried to use the API on a micro website that I have but on the chrome console says this:
Access to XMLHttpRequest at 'http://mytime.io/19:00/UTC-03:00' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
test.html:76 GET http://mytime.io/19:00/UTC-03:00 net::ERR_FAILED 200
My code is:
<p style='font-family: Montserrat;'>• From monday to friday at 19:00 Hs, wich in your timezone is:</p>
<div data-mytime='19:00/UTC-03:00' data-mytime-showtimezone='true'>
loading..</div>
<script type='text/javascript' src='http://mytime.io/lib.js'></script>
And the text is stuck at loading.
Can I get a hint?
Thanks!
AM/PM is confusing. The entire point of this page is to be super clear about what time it it, and 24 hour clock is much clearer!
You could show both too, that's a good solution too.
It shows BST
as the abbreviation, which actually refers to British Summer Time. It should've been BRT
instead. I imagine the code trying to be clever (getting the initial letters of the words) may have many other mistakes like this.
It does show the correct time though.
9 EST is not 7 PST
As of today
2pm PT reported as 10 am Nzst instead of 9am
add a simple usage guide to the readme
For example, when requesting
https://mytime.io/11am/PST
I get:
11am PST is
9:00:00 PM
your time
assuming the date is today and your time zone is [CEST](https://www.google.com/search?q=%22CEST%22+timezone+site:wikipedia.org&btnI)
which is correct at a level, but usually not that helpful.
I mean at the one hand the page assumes CEST based on what the browser provides and on the other hand you assume that the destination timezone doesn't observe daylight time anymore.
It's kind of common for humans to communicate timezones in appointments imprecisely.
For example, to continue to use CET and PST in the summer when daylight time is active, and not CEST, PDT etc. because people don't care enough.
Thus, it would be great for your service to provide some extra logic, e.g. cross-check whether actually daylight time is active, and then print an additional hint about that, i.e. also show the computed source time under a human interpretation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.