New config opt for default_timezone with fun

This commit is contained in:
Jesse Gumm 2016-05-31 18:45:54 -05:00
parent 366bc5e8d5
commit 2dfcc52dd5
3 changed files with 25 additions and 12 deletions

View file

@ -1,5 +1,12 @@
%% vim: ts=4 sw=4 et ft=erlang
[{qdate, [
%% default_timezone can be one of two things:
%% 1) An actual timezone. Either short-form like "GMT", "UTC", or a
%% longer-form (but more likely to pick the correct daylight saving
%% config timezone like "America/Chicago"
%% 2) A 2-tuple of {Module, Function}, which will be called as
%% Module:Function() to determine the timezone (say you wanted to
%% determine timezone based on some kind of environmental conditions)
{default_timezone, "GMT"},
%% See readme section here: