Logo
Explore Help
Register Sign In
saulteafarmer/castopod
1
0
Fork 0
You've already forked castopod
mirror of https://code.castopod.org/adaures/castopod synced 2025-05-10 16:25:47 +00:00
Code Issues Packages Projects Releases Wiki Activity
castopod/app/Resources/js/modules/ClientTimezone.ts

12 lines
266 B
TypeScript
Raw Normal View History

feat(episodes): schedule episode with future publication_date by using cache expiration time - merge publication date fields into one field instanciated with flatpickr datetime picker - get user timezone to convert user publication_date input to UTC - remove setPublishedAt() method from episode entity - add publication pill component to display the episode publication date info - clear cache after episode insert - use CI is_really_writable() helper in install instead of is_writable() - fix latest episodes layout - update tsconfig to only include ts folders - update DEPENDENCIES.md to include flatpickr - add format_duration helper to format episode enclosure duration instead of translating it (causes translation bug) - add Time.ts module to convert UTC time to user localized time for episode publication dates - fix some layout issues - update php and js dependencies to latest versions closes #47
2020-10-22 17:41:59 +00:00
const ClientTimezone = (): void => {
const input: HTMLInputElement | null = document.querySelector(
"input[name='client_timezone']"
);
if (input) {
input.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
}
};
export default ClientTimezone;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 178ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API