Well, I disagree with you. The OP said:
There is an inconsistency here. Either the millisecondSinceEpoch is in UTC timezone (that is GMT-1) either it’s in GMT. There is an offset of 3600000 ms between both.
I was too lazy to actually check Juce’s Time code, but I wonder the result is from 1/1/1970 0:0:0 GMT and not 0:0:0 UTC since I’ve found multiple time from the past needing to fix the offset when doing calculation with time coming from other software / network.
Clearly, time() C function returns number of seconds since Epoch UTC. If you compare both, you have 3600 seconds offset between both.
The second OP’s question was:
And this is what I’ve written in my post.
BTW, you can check what I’m saying here by simply doing this in the Juce demo:
AlertWindow::showMessageBox(AlertWindow::WarningIcon, "Current time", String::empty << (int)(Time::getCurrentTime().millisecondsSinceEpoch() / 1000));
Then go to any website displaying number of second since Epoch like:
To check that the returned value of Time::millis is 3600 seconds off.
Edit: You’re right about Epoch being independant of time zone. I’m mixing the start time offset used in Time from Epoch definition.