Compare commits

..

No commits in common. "9e6a55bb547158b9e0309d6936044497b9a4b358" and "b55b26dd209a983989b42dc9835015c4fe313744" have entirely different histories.

4 changed files with 5 additions and 92 deletions

View file

@ -3098,10 +3098,6 @@ declare namespace lib_plankton.pit {
type type_pit = int; type type_pit = int;
} }
declare namespace lib_plankton.pit { declare namespace lib_plankton.pit {
/**
* @todo complete
*/
function timezone_name_to_timezone_shift(timezone_name: string): int;
/** /**
*/ */
function date_object_get_week_of_year(date: Date): int; function date_object_get_week_of_year(date: Date): int;
@ -3115,7 +3111,7 @@ declare namespace lib_plankton.pit {
*/ */
function to_date_object(pit: type_pit): Date; function to_date_object(pit: type_pit): Date;
/** /**
* @todo test * @todo timezone
*/ */
function to_datetime(pit: type_pit, options?: { function to_datetime(pit: type_pit, options?: {
timezone_shift?: int; timezone_shift?: int;
@ -3155,18 +3151,6 @@ declare namespace lib_plankton.pit {
function to_ywd(pit: type_pit, options?: { function to_ywd(pit: type_pit, options?: {
timezone_shift?: int; timezone_shift?: int;
}): type_ywd; }): type_ywd;
/**
* computes the point in time for switching to central european summer time
*
* @todo write tests
*/
function cest_switch_on(year: int): type_pit;
/**
* computes the point in time for switching away from central european summer time
*
* @todo write tests
*/
function cest_switch_off(year: int): type_pit;
} }
declare namespace lib_plankton.ical { declare namespace lib_plankton.ical {
/** /**

View file

@ -4090,7 +4090,7 @@ var lib_plankton;
return { return {
"reports": [ "reports": [
{ {
"incident": "no valid adaptions", "incident": "no valid apaptions",
"details": { "details": {
"sub_adaptions": sub_adaptions, "sub_adaptions": sub_adaptions,
} }
@ -6076,7 +6076,7 @@ var lib_plankton;
/** /**
*/ */
function postgresql_wrap_name(name) { function postgresql_wrap_name(name) {
return ("\"" + name + "\""); return ("" + name + "");
} }
database.postgresql_wrap_name = postgresql_wrap_name; database.postgresql_wrap_name = postgresql_wrap_name;
/** /**
@ -10614,23 +10614,6 @@ var lib_plankton;
(function (lib_plankton) { (function (lib_plankton) {
var pit; var pit;
(function (pit_1) { (function (pit_1) {
/**
* @todo complete
*/
function timezone_name_to_timezone_shift(timezone_name) {
const map = {
"UTC": 0,
"CET": +1,
"CEST": +2,
};
if (!(timezone_name in map)) {
throw (new Error("unhandled timezone: " + timezone_name));
}
else {
return map[timezone_name];
}
}
pit_1.timezone_name_to_timezone_shift = timezone_name_to_timezone_shift;
/** /**
*/ */
function date_object_get_week_of_year(date) { function date_object_get_week_of_year(date) {
@ -10676,7 +10659,7 @@ var lib_plankton;
return Math.round(date_object.getTime() / 1000); return Math.round(date_object.getTime() / 1000);
} }
/** /**
* @todo test * @todo timezone
*/ */
function to_datetime(pit, options = {}) { function to_datetime(pit, options = {}) {
options = Object.assign({ options = Object.assign({
@ -10934,58 +10917,6 @@ var lib_plankton;
]); ]);
} }
pit_1.to_ywd = to_ywd; pit_1.to_ywd = to_ywd;
/**
* computes the point in time for switching to central european summer time
*
* @todo write tests
*/
function cest_switch_on(year) {
return lib_plankton.call.convey(year, [
(x) => ({
"timezone_shift": 0,
"date": {
"year": x,
"month": 4,
"day": 1,
},
"time": {
"hour": 2,
"minute": 0,
"second": 0
},
}),
from_datetime,
trunc_week,
x => shift_day(x, -1),
]);
}
pit_1.cest_switch_on = cest_switch_on;
/**
* computes the point in time for switching away from central european summer time
*
* @todo write tests
*/
function cest_switch_off(year) {
return lib_plankton.call.convey(year, [
(x) => ({
"timezone_shift": 0,
"date": {
"year": x,
"month": 11,
"day": 1,
},
"time": {
"hour": 1,
"minute": 0,
"second": 0
},
}),
from_datetime,
trunc_week,
x => shift_day(x, -1),
]);
}
pit_1.cest_switch_off = cest_switch_off;
})(pit = lib_plankton.pit || (lib_plankton.pit = {})); })(pit = lib_plankton.pit || (lib_plankton.pit = {}));
})(lib_plankton || (lib_plankton = {})); })(lib_plankton || (lib_plankton = {}));
/* /*

View file

@ -138,7 +138,7 @@ namespace _zeitbild.conf
"nullable": false, "nullable": false,
"type": "string" "type": "string"
}, },
"schema": { "scheme": {
"nullable": false, "nullable": false,
"type": "string" "type": "string"
} }

View file

@ -10,5 +10,3 @@
- optional: Kalender-Eigenschaft: "neue Termine standard-mäßig öffentlich" - optional: Kalender-Eigenschaft: "neue Termine standard-mäßig öffentlich"
- CalDAV-Export - CalDAV-Export
- OIDC session mapping ordentlich machen - OIDC session mapping ordentlich machen
- conf-schema ohne conf möglich machen