RTL DateTime.ToString() bug?

I’m sure I’m doing something wrong here but I have this C# code (using Elements RTL on Island macOS console app):

namespace TestApp
{
    static class Program
    {
        public static Int32 Main(string[] args)
        {
            string timestamp = DateTime.UtcNow.ToString();
            Console.WriteLine("Timestamp: " + timestamp);
            return 0;
        }
    }
}

The console outputs: Timestamp:

It would seem that the ToString() method on the DateTime object returned by UtcNow is empty.

Hmm. ill have a look, that is strange. reproduced though.

Partially fixed, though it will always use the default format and timezone, as fully implementing the overloads needs more work than I can do today.

2 Likes

if you don’t want to wait for a new build, you can grab the code at https://github.com/remobjects/rtl2 and build it yourself.

1 Like