Skip to content

Commit 81df64e

Browse files
committed
fix starttime on pycamp creation
1 parent f8036e1 commit 81df64e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pycamp_bot/commands/manage_pycamp.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,13 @@ async def define_duration(update, context):
132132
return SET_DURATION_STATE
133133

134134
_, pycamp = get_active_pycamp()
135-
pycamp.end = pycamp.init + datetime.timedelta(days=duration - 1)
135+
pycamp.end = pycamp.init + datetime.timedelta(
136+
days=duration - 1,
137+
hours=23,
138+
minutes=59,
139+
seconds=59,
140+
milliseconds=99
141+
)
136142
pycamp.save()
137143

138144
msg = "Listo, el PyCamp '{}' está activo, desde el {} hasta el {}".format(

0 commit comments

Comments
 (0)