Skip to content

Commit

Permalink
Time zone selector will now guess your local time
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbaeten committed Jun 17, 2023
1 parent 36962c1 commit d076cf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import { version } from '../../package.json';

$(document).ready(function() {
// Fetch the list of timezones from the API
$('#timezoneSelect').append($('<option>', {
value: moment.tz.guess(),
text: `Local (${moment.tz.guess()})`
}));
$.ajax({
url: 'https://apis.devinbaeten.com/timezones',
type: 'GET',
Expand Down

0 comments on commit d076cf5

Please sign in to comment.