mirror of
https://github.com/NohamR/xovi-qmd-extensions.git
synced 2025-11-23 10:59:30 +00:00
Compare commits
2 Commits
79eacc385c
...
17898d11af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17898d11af | ||
|
|
ab274a7511 |
@ -17,7 +17,9 @@ AFFECT [[4911547370760691430]]
|
||||
|
||||
function getCestTime() {
|
||||
~&197102514&~ now = new ~&6502586279&~();
|
||||
~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
; to add a timezone:
|
||||
; ~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
~&197102514&~ utc = now.getTime();
|
||||
~&197102514&~ cestTime = new ~&6502586279&~(utc + (2 * 3600000)); /* UTC + 2 hours
|
||||
*/
|
||||
~&7083121450889&~ cestTime;
|
||||
|
||||
@ -20,7 +20,9 @@ AFFECT [[12542166428983872557]]
|
||||
|
||||
function getCestTime() {
|
||||
~&197102514&~ now = new ~&6502586279&~();
|
||||
~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
; to add a timezone:
|
||||
; ~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
~&197102514&~ utc = now.getTime();
|
||||
~&7083121450889&~ new ~&6502586279&~(utc + cestOffset);
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,9 @@ AFFECT [[4911547370760691430]]
|
||||
|
||||
function getCestTime() {
|
||||
~&197102514&~ now = new ~&6502586279&~();
|
||||
~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
; to add a timezone:
|
||||
; ~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
~&197102514&~ utc = now.getTime();
|
||||
~&197102514&~ cestTime = new ~&6502586279&~(utc + (1 * 3600000)); /* UTC + 1 hours
|
||||
*/
|
||||
~&7083121450889&~ cestTime;
|
||||
|
||||
@ -20,7 +20,9 @@ AFFECT [[12542166428983872557]]
|
||||
|
||||
function getCestTime() {
|
||||
~&197102514&~ now = new ~&6502586279&~();
|
||||
~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
; to add a timezone:
|
||||
; ~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
~&197102514&~ utc = now.getTime();
|
||||
~&7083121450889&~ new ~&6502586279&~(utc + cestOffset);
|
||||
}
|
||||
|
||||
|
||||
@ -26,10 +26,15 @@ Beta releases are not tested nor supported.
|
||||
- Adds a live clock to the library sidebar; tap the entry to toggle seconds display.
|
||||

|
||||

|
||||
Note: You can add a timezone by editing the `clock.qmd` file and changing the timezone string in the line:
|
||||
```
|
||||
~&197102514&~ utc = now.getTime() + (now.getTimezoneOffset() * 60000);
|
||||
```
|
||||
|
||||
#### `quickSettingsClock.qmd`
|
||||
- Injects a tappable clock into the Quick Settings header; tap to toggle between minute and second precision.
|
||||

|
||||
Note: You can add a timezone by editing the `quickSettingsClock.qmd`, see above for details.
|
||||
|
||||
#### `forceSync.qmd`
|
||||
- Adds a cloud button in Quick Settings that forces a library sync when tapped (need further testing to confirm it works as intended).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user