Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error with '(Get-Date).ToString('yyyy-MM-ddTHH:mm:ssZ')' #496

Open
ElektroStudios opened this issue Jan 26, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@ElektroStudios
Copy link

ElektroStudios commented Jan 26, 2025

Description

The following scripts with names:

  • --- Maximize update pause duration
  • --- Maximize feature update duration (disables resuming updates from settings)
  • --- Maximize quality update duration (disables resuming updates from settings)

Are causing the same error message:

+ ... tings'; $data = '(Get-Date).ToString('yyyy-MM-ddTHH:mm:ssZ')'; $data  ...
+                                           ~~~~~~~~~~~~~~~~~~~~~~~
Token 'yyyy-MM-ddTHH:mm:ssZ')'' inesperado en la expresión o la instrucción.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

Note that the output is in Spanish. English translation says this:

Unexpected token 'yyyy-MM-ddTHH:mm:ssZ')'' in the expression or statement.

That sounds to me like a syntax error in the date string format.


Partial output (translated to English)

sexy_getdate.txt


How can the bug be recreated?

No exact idea. ¿Maybe having the same Windows 10 OS build I have, and running the Privacy Sexy generated script file that I've attached?.

Operating system

Windows 10

  • Version: 10.0.19045.2006
  • Architecture: 64-Bit
  • Edition: Home Single Language
  • OS Language: Spanish of Spain (es-ES)
  • User account privileges: Built-in "hidden" Administrator account, with UAC disabled.

Script file

PrivacySexy.zip

Screenshots

Image

Additional information

Tested with Privacy Sexy version 0.13.7

PowerShell $PSVersionTable output:

Name                           Value
----                           -----
PSVersion                      5.1.19041.1682
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.1682
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@ElektroStudios ElektroStudios added the bug Something isn't working label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant