Commit e064bcf3 authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Fix the default time for new messages.

parent ff4c10a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ func ActionAdd(cmd *dclish.Command) error {
	optAll := 0
	optBell := 0
	optBroadcast := 0
	optExpiration := &time.Time{}
	var optExpiration *time.Time
	optExtract := 0
	optFolder := []string{}
	optIndent := 0
@@ -292,7 +292,7 @@ func ActionChange(cmd *dclish.Command) error {
		optAll = true
	}

	optExpiration := &time.Time{}
	var optExpiration *time.Time
	if cmd.Flags["/EXPIRATION"].Value != "" {
		// dd-mmm-yyyy, or delta time: dddd
		exp, err := time.Parse("2006-01-02", cmd.Flags["/EXPIRATION"].Value)