ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
37 stars 4 forks source link

$EventData for New-UDDatePicker provides output in multiple formats (re-open) #2992

Closed MattHarrisUltima closed 9 months ago

MattHarrisUltima commented 10 months ago

Version

4.2.6

Severity

Low

Steps to Reproduce

This is a re-open of #2835 I am experiencing the same problem in 4.2.6

Version

4.0.12

Severity

High

Steps to Reproduce

I have tested this in 2 code bocks (with and without the -Format parameter):

New-UDDatePicker -Id 'managecompanysecretexpirydate' -Format 'dd/MM/yyyy' -OnChange {
        $session:ChangedDate = $Eventdata
    Sync-UDElement -id dynamicbox
}

New-UDDynamic -id dynamicbox -Content {
    New-UDParagraph -Text $session:ChangedDate
}
New-UDDatePicker -Id 'managecompanysecretexpirydate' -OnChange {
        $session:ChangedDate = $Eventdata
    Sync-UDElement -id dynamicbox
}

New-UDDynamic -id dynamicbox -Content {
    New-UDParagraph -Text $session:ChangedDate
}

Expected behavior

### Expected behavior

$EventData should present data in the same format

Actual behaviour

The output passed to $EventData is presented in at least 1 of 2 formats.

E.g.

11/10/2023 14:47:11
"2023-11-10T14:47:11+00:00"

Visuals

2023-11-09 14_45_19-IA-Cloud — Mozilla Firefox 2023-11-09 14_45_09-IA-Cloud — Mozilla Firefox 2023-11-09 14_44_36-IA-Cloud — Mozilla Firefox 2023-11-09 14_47_29-IA-Cloud — Mozilla Firefox 2023-11-09 14_47_22-IA-Cloud — Mozilla Firefox

adamdriscoll commented 10 months ago

I cannot reproduce this on 4.2.8. Additionally, I'm not seeing the times in the dates. Something has changed.

image

We did make a change around the -Locale parameter but I'm not sure if that has an effect on this. I'll remove this from the milestone for now but will leave this open until we can verify across more systems.

MattHarrisUltima commented 10 months ago

Hi Adam,

I am on 4.2.6 at the moment. Once 4.2.8 is out I will test again to see if the problem is in this version.

Kind Regards,

MATT​​​​

HARRIS Cloud Automation Developer

www.ultima.comhttp://www.ultima.com/ |

From: Adam Driscoll @.> Sent: Wednesday, January 3, 2024 3:31 PM To: ironmansoftware/issues @.> Cc: Matt Harris @.>; Author @.> Subject: Re: [ironmansoftware/issues] $EventData for New-UDDatePicker provides output in multiple formats (re-open) (Issue #2992)

[Attention: This email has originated from outside Ultima. Please take extra care when opening links or attachments even if you've verified the sender. If in doubt, please contact the IT service desk.]

I cannot reproduce this on 4.2.7. Additionally, I'm not seeing the times in the dates. Something has changed.

image.png (view on web)https://github.com/ironmansoftware/issues/assets/1256531/583fb05c-8c48-4172-8560-6078fcb41484

We did make a change around the -Locale parameter but I'm not sure if that has an effect on this.

— Reply to this email directly, view it on GitHubhttps://github.com/ironmansoftware/issues/issues/2992#issuecomment-1875554370, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZLIKLPTSH2CI2PY45GY423YMV2SVAVCNFSM6AAAAABA23ESEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVGU2TIMZXGA. You are receiving this because you authored the thread.Message ID: @.**@.>>

This e-mail, its contents and any attachments, is private and, in the absence of any other document classification markings, is confidential. It is for the intended recipient only and is property of Ultima Business Solutions Limited. If you are not the stated recipient, you must not deal with it in any way and are prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. In such case please notify us by telephone on 03330158000 and confirm that it has been deleted from your system and any copies destroyed. This e-mail has been swept for the presence of computer viruses, but no warranty is given that this e-mail and any attachments are virus free. You should undertake your own virus checking, Ultima Business Solutions Limited do not accept liability for any loss or damage caused by computer viruses. The right to monitor e-mail communications through our networks is reserved by us. Our Privacy Policy may be reviewed on the following web page https://www.ultima.com/privacy-policy About us Ultima Business Solutions Limited is registered in England and Wales under number: 2521249. Registered Office: Gainsborough House, Manor Park, Reading, RG2 0NA. www.ultima.com

MattHarrisUltima commented 9 months ago

Hi @adamdriscoll

I can still replicate this in 4.2.8.

Please reach out if you would like a call to take a look at this.

adamdriscoll commented 9 months ago

Can you email me at adam[at]ironmansoftware.com and we can get something scheduled?

MattHarrisUltima commented 9 months ago

Hi @adamdriscoll

I have pulled 4.2.10 and the problem looks to be fixed.

Many thanks for your help with this.