From 3554e857285dea2e84f525f7125af1fb211b87ef Mon Sep 17 00:00:00 2001 From: David Thielen Date: Tue, 1 Oct 2024 12:10:02 -0600 Subject: [PATCH] 1. build action script 2. readme content --- .github/workflows/action.yml | 32 ++++++++++++++++++++++++++++++++ LICENSE.txt | 2 +- README.md | 12 +++++++++++- 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/action.yml diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..514444d --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,32 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy ASP.Net Core app to Azure Web App - louishowe + +on: + push: + branches: + - master + - feature/* + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + timeout-minutes: 30 + + steps: + - uses: actions/checkout@v2 + + - name: Set up .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '8.x' + include-prerelease: true + + - name: Build + run: dotnet build .\TradeWindsDateTime\TradeWindsDateTime.csproj --configuration Release + + - name: Unit Tests + run: dotnet test .\UnitTests\UnitTests.csproj + \ No newline at end of file diff --git a/LICENSE.txt b/LICENSE.txt index 8aa2645..f24dcfb 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ MIT License -Copyright (c) [year] [fullname] +Copyright (c) 2024 Trade Winds Studios (David Thielen) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 5e5201c..0f86411 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# TradeWindsDateTime \ No newline at end of file +# TradeWindsDateTime + +These are some classes I created for handling the DateTime. The primary class is DateTimeZone which is DateTime+TimeZone. + +When working with DateTime across timezones, do not use UTC Offset - that will always bite you in the ass sooner or later. Daylight Savings Time start/end is a political decision and it changes regularly. + +The DateTimeZone can be saved in a database as the DateTime & the TimeZoneId (string). Save and use DateTimeZone. + +This is under the MIT license. If you find this very useful I ask (not a requirement) that you consider reading my book [I DON’T KNOW WHAT I’M DOING!: How a Programmer Became a Successful Startup CEO](https://a.co/d/bEpDlJR). + +And if you like it, please review it on Amazon and/or GoodReads. The number of legitimate reviews helps a lot. Much appreciated. \ No newline at end of file