skUtilities icon indicating copy to clipboard operation
skUtilities copied to clipboard

[bug] Date information all off

Open ShaneBeee opened this issue 6 years ago • 0 comments

Hey So i found this example in the docs on SkUnity

command /padi:
  trigger:
    set {_tmpO} to now
    broadcast "Date: %{_tmpO}%"
    broadcast "Year: %year from date {_tmpO}%"
    broadcast "Month: %month from date {_tmpO}%"
    broadcast "Month Name: %month name from date {_tmpO}%"
    broadcast "Day of Year: %day of year from date {_tmpO}%"
    broadcast "Day of Month: %day of month from date {_tmpO}%"
    broadcast "Day of Week: %day of week from date {_tmpO}%"
    broadcast "Day Name: %day name from date {_tmpO}%"
    broadcast "Hour: %hours from date {_tmpO}%"
    broadcast "Minute: %minutes from date {_tmpO}%"
    broadcast "Second: %seconds from date {_tmpO}%"

When I tried that out, This is the output I got

[01:14:55 INFO]: Date: 10/08/18 1:14 AM
[01:14:55 INFO]: Year: 2077
[01:14:55 INFO]: Month: 1
[01:14:55 INFO]: Month Name: JANUARY
[01:14:55 INFO]: Day of Year: 1
[01:14:55 INFO]: Day of Month: 1
[01:14:55 INFO]: Day of Week: 5
[01:14:55 INFO]: Day Name: FRIDAY
[01:14:55 INFO]: Hour: 10/08/18 2:14 AM
[01:14:55 INFO]: Minute: 10/08/18 2:15 AM
[01:14:55 INFO]: Second: 10/08/18 2:15 AM

Each time I tried it, it kept changing. Ass you can see the date I checked this at was "Date: 10/08/18 1:14 AM" <-- that part is correct The rest is all wrong. As the time went on and I checked it again, it gave a whole new bunch of info. I have my date format in the Skript config set to default.

ShaneBeee avatar Aug 10 '18 08:08 ShaneBeee