aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cowboy_clock.erl1
-rw-r--r--src/cowboy_cookies.erl2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_clock.erl b/src/cowboy_clock.erl
index 66fc009..3597bdd 100644
--- a/src/cowboy_clock.erl
+++ b/src/cowboy_clock.erl
@@ -38,6 +38,7 @@
-type time() :: {hour(), minute(), second()}.
-type datetime() :: {date(), time()}.
+-export_type([date/0, time/0, datetime/0]).
-record(state, {
universaltime = undefined :: undefined | datetime(),
diff --git a/src/cowboy_cookies.erl b/src/cowboy_cookies.erl
index d7addd3..9c6c4c3 100644
--- a/src/cowboy_cookies.erl
+++ b/src/cowboy_cookies.erl
@@ -23,7 +23,7 @@
-type kv() :: {Name::binary(), Value::binary()}.
-type kvlist() :: [kv()].
-type cookie_option() :: {max_age, integer()}
- | {local_time, {calendar:date(), calendar:time()}}
+ | {local_time, {cowboy_clock:date(), cowboy_clock:time()}}
| {domain, binary()} | {path, binary()}
| {secure, true | false} | {http_only, true | false}.
-export_type([kv/0, kvlist/0, cookie_option/0]).