mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	Fix create milestone with deadline bug (#462)
Fix #461 Reviewed-on: https://gitea.com/gitea/tea/pulls/462 Reviewed-by: Norwin <noerw@noreply.gitea.io> Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		| @@ -55,7 +55,7 @@ func runMilestonesCreate(cmd *cli.Context) error { | |||||||
| 	deadline := &time.Time{} | 	deadline := &time.Time{} | ||||||
| 	if date != "" { | 	if date != "" { | ||||||
| 		t, err := dateparse.ParseAny(date) | 		t, err := dateparse.ParseAny(date) | ||||||
| 		if err == nil { | 		if err != nil { | ||||||
| 			return err | 			return err | ||||||
| 		} | 		} | ||||||
| 		deadline = &t | 		deadline = &t | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lunny Xiao
					Lunny Xiao