hi all
grep "'[^']+': {" timezones.js | sed -Ee "s#(\s*'|':\s*{)##g"
this returns nothing though timezones.js does have many timezones defined
after logging in, time zone is Berlin and no others are available in the dropdown
what can i do about it? would like to have a complete list
thanks
Le 2023-09-20 20:05, st--- via Inf-IT DAV Clients a écrit :
hi all
grep "'[^']+': {" timezones.js | sed -Ee "s#(\s*'|':\s*{)##g"
this returns nothing though timezones.js does have many timezones defined
after logging in, time zone is Berlin and no others are available in the dropdown
what can i do about it? would like to have a complete list
thanks
grep "'[^']+': {" timezones.js | sed -Ee "s#(\s*'|':\s*{)##g" Arctic/Longyearbyen Africa/Dar_es_Salaam Africa/Mbabane Africa/Lagos Africa/Bissau Africa/Nairobi Africa/Tunis Africa/Khartoum Africa/Asmara Africa/Lubumbashi Africa/Blantyre Africa/Bamako Africa/Algiers Africa/Ouagadougou Africa/Djibouti Africa/Sao_Tome Africa/Ndjamena Africa/Malabo Africa/Porto-Novo Africa/Addis_Ababa Africa/Gaborone
[...]
Australia/Eucla Australia/Broken_Hill Australia/Currie Australia/Brisbane Australia/Melbourne Australia/Hobart Australia/Darwin Australia/Perth Australia/Sydney Australia/Lindeman Indian/Mayotte Indian/Mauritius Indian/Cocos Indian/Chagos Indian/Maldives Indian/Antananarivo Indian/Christmas Indian/Comoro Indian/Mahe Indian/Reunion Indian/Kerguelen
What does your file contain? file timezones.js timezones.js: ASCII text, with very long lines (1147)
Maybe it is in DOS format ie (CR/LF)
var timezones = { 'Arctic/Longyearbyen': { daylightComponents: [ { dtStart: '19810329T020000', tzName: 'CEST', tzOffsetFROM: '+0100', tzOffsetTO: '+0200', startMinutes: 0, startHours: 2, startMonth: 3, startDay: 0, startCount: -1 }, { dtStart: '19160522T010000', tzName: 'CEST', tzOffsetFROM: '+0100', tzOffsetTO: '+0200', startMinutes: 0, startHours: 1, rDates: ['19800406T020000','19650425T020000','19640315T020000','19630317T020000','19620318T020000','19610319T020000','19600320T020000','19590315T020000','19450402T020000','19440403T020000','19430329T020000','19400810T230000','19160522T010000'] } ], standardComponents: [ { dtStart: '19961027T030000',
[...]
$ cat timezones.js | wc -l 54141 $
Le 2023-09-20 20:20, st--- via Inf-IT DAV Clients a écrit :
var timezones = { 'Arctic/Longyearbyen': { daylightComponents: [ { dtStart: '19810329T020000', tzName: 'CEST', tzOffsetFROM: '+0100', tzOffsetTO: '+0200', startMinutes: 0, startHours: 2, startMonth: 3, startDay: 0, startCount: -1 }, { dtStart: '19160522T010000', tzName: 'CEST', tzOffsetFROM: '+0100', tzOffsetTO: '+0200', startMinutes: 0, startHours: 1, rDates: ['19800406T020000','19650425T020000','19640315T020000','19630317T020000','19620318T020000','19610319T020000','19600320T020000','19590315T020000','19450402T020000','19440403T020000','19430329T020000','19400810T230000','19160522T010000'] } ], standardComponents: [ { dtStart: '19961027T030000',
[...]
$ cat timezones.js | wc -l 54141 $
Very strange! wc -l timezones.js 27081 timezones.js
$ wget https://inf-it.com/open-source/download/CalDavZAP_0.13.1.zip $ unzip *.zip $ cd cavdalzap $ file timezones.js timezones.js: ASCII C program text $ cat timezones.js | wc -l 54141 $
Le 2023-09-20 20:34, st--- via Inf-IT DAV Clients a écrit :
$ wget https://inf-it.com/open-source/download/CalDavZAP_0.13.1.zip $ unzip *.zip $ cd cavdalzap $ file timezones.js timezones.js: ASCII C program text $ cat timezones.js | wc -l 54141 $
I use Infcloud version: https://inf-it.com/open-source/download/InfCloud_0.13.1.zip As sais in the doc: InfCloud is the integrated version of CalDavZAP and CardDavMATE, and includes all features of both clients
Le 2023-09-20 22:37, nb via Inf-IT DAV Clients a écrit :
Le 2023-09-20 20:34, st--- via Inf-IT DAV Clients a écrit :
$ wget https://inf-it.com/open-source/download/CalDavZAP_0.13.1.zip $ unzip *.zip $ cd cavdalzap $ file timezones.js timezones.js: ASCII C program text $ cat timezones.js | wc -l 54141 $
I use Infcloud version: https://inf-it.com/open-source/download/InfCloud_0.13.1.zip As sais in the doc: InfCloud is the integrated version of CalDavZAP and CardDavMATE, and includes all features of both clients
I have just tried with the CalDavZap version. Size is same as yours. grep shows results...
in the Infcloud version
$ cat timezones.js | wc -l 27081 $ file timezones.js timezones.js: ASCII C program text $
Please note, this is openBSD - maybe this has an effect on results
Le 2023-09-20 20:52, st--- via Inf-IT DAV Clients a écrit :
in the Infcloud version
$ cat timezones.js | wc -l 27081 $ file timezones.js timezones.js: ASCII C program text $
Please note, this is openBSD - maybe this has an effect on results
I have tried using MacOS with Apple grep and Gnu grep (from homebrew). I have also tried on a Debian unstable Linux. I have also tried to change LC_ALL to C (I usually use fr_FR.UTF-8). Same after an export LANG=C All give the same results: it works fine. I don't have an OpenBSD platform and don't know how it works. Sorry I have no more ideas... Wait for someone else response.
Thank you for checking. Does it use the grep command within the program to retrieve the list of timezones, or does it use some JavaScript command to retrieve the list of timezones? I mean I think the grep is just for the user to see list of the timezones and it is not the real reason why the software doesn't see the list.