diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-08-26 23:42:50 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-08-26 23:52:18 -0700 |
| commit | b69d67de6e14b83647b4e4201cc2403b30d4df8a (patch) | |
| tree | f2b806a8ccf4292358e8760e6d45236e112f972a | |
| parent | c019d769786993502b359608279d529745dc207b (diff) | |
version 0.0.3
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | CHANGELOG.md | 19 | ||||
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | src/main.rs | 11 |
6 files changed, 23 insertions, 14 deletions
@@ -1 +1,2 @@ /target +main.rs
\ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..90673e4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + + +## [0.0.3] - 2024-08-26 + +### Added +- Unittests for `eorzean_time` and `eorzean_weather` modules. + +### Changed +- Integer timestamps will now be interpreted as seconds since epoch instead of milliseconds. + +### Fixed +- Incorrect offset used when converting time to EorzeanDate causing for index out of bounds sometimes when reading moon phase prefix +
\ No newline at end of file @@ -66,7 +66,7 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "ffxiv-chronowatcher" -version = "0.0.2" +version = "0.0.3" dependencies = [ "chrono", "serde", @@ -4,7 +4,7 @@ description = "Weather and Eorzean Time Library for Final Fantasy XIV" repository = "https://github.com/pinapelz/ffxiv-chronowatcher" readme = "README.md" keywords = ["ffxiv", "eorzea", "weather", "time"] -version = "0.0.2" +version = "0.0.3" edition = "2021" exclude = [ "src/main.rs", @@ -4,7 +4,7 @@ Chronowatcher is a Rust library for getting the time and weather of locations in - Retrieving Eorzean Date ```rust use eorzean_weather::calculate_forecast; -current_time = Utc::now().timestamp_millis(); +current_time = Utc::now().timestamp(); let eorzean_date = eorzean_time::convert_to_eorzean_date(current_time); // EorzeanDate { guardian: "Thaliak", phase: "Waxing Half Moon", moon: "Second Astral Moon", years: 1069, suns: 9, bells: 5, minutes: 54 } diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index 2d79ece..0000000 --- a/src/main.rs +++ /dev/null @@ -1,11 +0,0 @@ -mod eorzean_time; - -use chrono::Utc; -use eorzean_time::convert_seconds_to_eorzean_duration; - - -fn main() { - let current_time = Utc::now().timestamp_millis(); - let eorzean_date = eorzean_time::convert_to_eorzean_date(current_time); - println!("{:?}", eorzean_date); -}
\ No newline at end of file |
