mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 20:20:21 +01:00
core: added functionality for week format change
This commit is contained in:
@@ -188,6 +188,18 @@ class Settings {
|
||||
this._settings.dateFormat = format;
|
||||
await this._saveSettings();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @returns {"Sun" | "Mon"}
|
||||
*/
|
||||
getWeekFormat() {
|
||||
return this._settings.weekFromat || "Sun";
|
||||
}
|
||||
|
||||
async setWeekFormat(format) {
|
||||
this._settings.weekFromat = format;
|
||||
await this._saveSettings();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @returns {"12-hour" | "24-hour"}
|
||||
|
||||
Reference in New Issue
Block a user