AmendHub

Download:

jcs

/

subtext

/

amendments

/

108

db: Add timezone field to config

This is just for printing in timestamps and doesn't affect any
date/time calculation

jcs made amendment 108 about 1 year ago
--- db.c Mon May 23 13:10:11 2022 +++ db.c Mon May 23 14:32:28 2022 @@ -50,6 +50,9 @@ struct struct_field config_fields[] = { { "Max Idle Minutes", CONFIG_TYPE_SHORT, offsetof(struct config, max_idle_minutes), 1, USHRT_MAX }, + { "Timezone (Abbrev)", CONFIG_TYPE_STRING, + offsetof(struct config, timezone), + 1, member_size(struct config, timezone) }, }; size_t nconfig_fields = nitems(config_fields); --- db.h Mon May 23 13:10:23 2022 +++ db.h Mon May 23 14:31:38 2022 @@ -64,6 +64,7 @@ struct config { short modem_port; char modem_init[96]; short max_idle_minutes; + char timezone[8]; }; extern struct struct_field config_fields[]; @@ -73,7 +74,7 @@ struct db { struct bile *bile; short fh; struct config config; - struct user_map *user_map; + struct username_cache *username_cache; short nusers; struct bile *sessions_bile; struct board *boards;