refactor: replace a deprecated function
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				actionlint check / actionlint check (pull_request) Successful in 5s
				
			
		
			
				
	
				checkov check / checkov check (pull_request) Successful in 53s
				
			
		
			
				
	
				conventional commit messages check / conventional commit messages check (pull_request) Successful in 5s
				
			
		
			
				
	
				conventional pull request title check / conventional pull request title check (pull_request) Successful in 2s
				
			
		
			
				
	
				dotenv-linter check / dotenv-linter check (pull_request) Successful in 5s
				
			
		
			
				
	
				GitLeaks check / GitLeaks check (pull_request) Successful in 8s
				
			
		
			
				
	
				hadolint check / hadolint check (pull_request) Successful in 8s
				
			
		
			
				
	
				htmlhint check / htmlhint check (pull_request) Successful in 9s
				
			
		
			
				
	
				markdownlint check / markdownlint check (pull_request) Successful in 10s
				
			
		
			
				
	
				Prettier check / Prettier check (pull_request) Successful in 11s
				
			
		
			
				
	
				Rust check / Rust check (pull_request) Successful in 14m55s
				
			
		
			
				
	
				ShellCheck check / ShellCheck check (pull_request) Successful in 16s
				
			
		
			
				
	
				Stylelint check / Stylelint check (pull_request) Successful in 12s
				
			
		
			
				
	
				yamllint check / yamllint check (pull_request) Successful in 14s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	actionlint check / actionlint check (pull_request) Successful in 5s
				
			checkov check / checkov check (pull_request) Successful in 53s
				
			conventional commit messages check / conventional commit messages check (pull_request) Successful in 5s
				
			conventional pull request title check / conventional pull request title check (pull_request) Successful in 2s
				
			dotenv-linter check / dotenv-linter check (pull_request) Successful in 5s
				
			GitLeaks check / GitLeaks check (pull_request) Successful in 8s
				
			hadolint check / hadolint check (pull_request) Successful in 8s
				
			htmlhint check / htmlhint check (pull_request) Successful in 9s
				
			markdownlint check / markdownlint check (pull_request) Successful in 10s
				
			Prettier check / Prettier check (pull_request) Successful in 11s
				
			Rust check / Rust check (pull_request) Successful in 14m55s
				
			ShellCheck check / ShellCheck check (pull_request) Successful in 16s
				
			Stylelint check / Stylelint check (pull_request) Successful in 12s
				
			yamllint check / yamllint check (pull_request) Successful in 14s
				
			This commit is contained in:
		@@ -19,7 +19,7 @@ use diesel::prelude::*;
 | 
				
			|||||||
use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, RunQueryDsl, SelectableHelper};
 | 
					use diesel::{ExpressionMethods, OptionalExtension, QueryDsl, RunQueryDsl, SelectableHelper};
 | 
				
			||||||
use dioxus::prelude::*;
 | 
					use dioxus::prelude::*;
 | 
				
			||||||
#[cfg(feature = "server")]
 | 
					#[cfg(feature = "server")]
 | 
				
			||||||
use time::util::days_in_year_month;
 | 
					use time::Month;
 | 
				
			||||||
#[cfg(feature = "server")]
 | 
					#[cfg(feature = "server")]
 | 
				
			||||||
use validator::Validate;
 | 
					use validator::Validate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -178,10 +178,11 @@ pub(crate) async fn complete_task(task_id: i32) -> Result<Task, ServerFnError<Er
 | 
				
			|||||||
                *date = NaiveDate::from_ymd_opt(
 | 
					                *date = NaiveDate::from_ymd_opt(
 | 
				
			||||||
                    date.year(),
 | 
					                    date.year(),
 | 
				
			||||||
                    date.month(),
 | 
					                    date.month(),
 | 
				
			||||||
                    reoccurrence.start_date().day().min(days_in_year_month(
 | 
					                    reoccurrence.start_date().day().min(
 | 
				
			||||||
                        date.year(),
 | 
					                        Month::try_from(date.month() as u8)
 | 
				
			||||||
                        (date.month() as u8).try_into().unwrap(),
 | 
					                            .unwrap()
 | 
				
			||||||
                    ) as u32),
 | 
					                            .length(date.year()) as u32,
 | 
				
			||||||
 | 
					                    ),
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
                .unwrap()
 | 
					                .unwrap()
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user