19 lines
355 B
Java
19 lines
355 B
Java
package pl.edu.amu.wmi.bookapi.config;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import java.time.Clock;
|
|
import java.time.Instant;
|
|
import java.time.ZoneId;
|
|
|
|
@Configuration
|
|
public class DateTimeProvider {
|
|
|
|
@Bean
|
|
public Instant time() {
|
|
return Instant.now();
|
|
}
|
|
|
|
}
|