New Node, DateTime, UTCToLocal, and fix for CaptureComponent2D_SaveImage
Dear Community,
's fix for CaptureComponent2D_SaveImage is in newest build!
Also I am releasing my 2-day research project to you ! (My final solution took 5 min to figure out, but discovering the problem took much longer ).
Here I am giving you the ability to convert a UTC Date into your local zone, at the of the execution of the code (not hardcoded in BP or anywhere).
node retrieves the local of your computer, and the current UTC , and uses that offset to take any UTC and convert it to your/the end userâs local zone!
is very important for any you can only get times in UTC but need a BP node to convert to the userâs local !
I needed for my Save System Plugin to allow people to get a File stamp in local !
And I am giving research of mine to you as part of Victory Plugin (source code is included in the complimentary download)
**C++ Code**
Here is the code I figured out to do dynamic UTC to Local conversion in very succinct fashion!
Note I return by Reference for maximum memory efficiency :)
```
UFUNCTION(BlueprintPure, Category = "Save System|File IO")
static void UTCToLocal(const FDateTime& UTCTime, FDateTime& LocalTime)
{
//Turn UTC into local â„
FTimespan UTCOffset = FDateTime::Now() - FDateTime::UtcNow();
LocalTime = UTCTime;
LocalTime += UTCOffset;
//â„
}
```
New Download for UE4 4.12 (55mb, Media Fire)
Please note I now use the UE4 Marketplace C++ Plugin Standard when packaging Victory plugin for you
- Win64 Development
- Win64 Shipping <~~~~~~ NEW!
- Win32 Development
- Win32 Shipping
- HTML5 Development
- HTML5 Shipping <~~~~~~ NEW!
Please see my instructions for Packaging UE4 Plugins With Your Game.
**Prior Engine Versions**
**4.11: **http://www.mediafire.com/download/jp91b9atphm2obt/VictoryPlugin11.zip
Donations can be sent to me via: