Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Well the redis ExpireAt command takes a Unix time which is in UTC which is what 
the RedisClient sends.

If you're -1hr off your local time, then I'm guessing your servers are located 
in the UK?

It sounds to me that your systems time may not be in sync. I would double check 
that the client and servers are all configured with the correct time and time 
zone.

- Demis

Original comment by [email protected] on 31 Aug 2010 at 4:14

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
All servers in france, same timezone, i checked this first.
The différence is in fact -2h

Expireat works fine, with a custom convert function.

Original comment by [email protected] on 31 Aug 2010 at 4:42

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
So you're saying that your own custom function to generate a unixtime works?

This is the source code of the one used in 'redis.ExpireEntryAt':

public const long UnixEpoch = 621355968000000000L;
public static long ToUnixTime(this DateTime dateTime)
{
    var epoch = (dateTime.ToUniversalTime().Ticks - UnixEpoch) / TimeSpan.TicksPerSecond;
    return epoch;
}

I'm guessing your *custom one that works* is similar but without the 
'.ToUniversalTime()'?

I just checked with #redis and they confirm its UTC.

So frances local time now is: 7:00pm
UTC is 5:00pm

Using MONITOR which value gets to redis? 

Original comment by [email protected] on 31 Aug 2010 at 5:04

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
sorry, your product is ok.
here is my real problem:
http://code.google.com/p/redis/issues/detail?id=318

Original comment by [email protected] on 1 Sep 2010 at 10:14

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 28, 2024
Sweet, good to know.

Original comment by [email protected] on 1 Sep 2010 at 10:20

  • Changed state: Fixed

from servicestack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.